前段时间我为我的博客安装了一个主题。它非常好,几乎拥有我想要的所有功能,但现在我知道它有一个小错误,即没有地方上传网站徽标。我已经尽力研究框架和子主题,但找不到任何上传徽标图像的选项(它确实有一个选项询问用户是否要显示文本徽标或图像徽标)。
主题描述
主题分为框架和子主题两部分。
头文件.php
<?php
/**
* WARNING: This file is part of the core Genesis framework. DO NOT edit
* this file under any circumstances. Please do all modifications
* in the form of a child theme.
*
* Handles the header structure.
*
* @package Genesis
*/
do_action( 'genesis_doctype' );
do_action( 'genesis_title' );
do_action( 'genesis_meta' );
wp_head(); /** we need this for plugins **/
?>
</head>
<body <?php body_class(); ?>>
<?php
do_action( 'genesis_before' );
?>
<div id="wrap">
<?php
do_action( 'genesis_before_header' );
do_action( 'genesis_header' );
do_action( 'genesis_after_header' );
echo '<div id="inner">';
genesis_structural_wrap( 'inner' );
函数.php
<?php
/**
* WARNING: This file is part of the core Genesis framework. DO NOT edit
* this file under any circumstances. Please do all modifications
* in the form of a child theme.
*
* This file calls the init.php file, but only
* if the child theme hasn't called it first.
*
* This method allows the child theme to load
* the framework so it can use the framework
* components immediately.
*
* @package Genesis
*/
require_once( dirname( __FILE__ ) . '/lib/init.php' );
请帮帮我。谢谢