WordPress已经提出了这个问题,但没有答案。我只是想在这个论坛上试试,如果有人知道的话,因为我也有同样的问题。
要使用jquery滑块编辑我的主题,如何转到该脚本?,显示“$主题->挂钩(\'content\\u before\');”在content div标记中。有人能帮忙吗?
我的主题索引。php包含以下内容
<div id="main">
<?php $theme->hook(\'main_before\'); ?>
<div id="content">
<?php $theme->hook(\'content_before\'); ?>
<?php
if (have_posts()) : while (have_posts()) : the_post();
/**
* The default post formatting from the post.php template file will be used.
* If you want to customize the post formatting for your homepage:
*
* - Create a new file: post-homepage.php
* - Copy/Paste the content of post.php to post-homepage.php
* - Edit and customize the post-homepage.php file for your needs.
*
* Learn more about the get_template_part() function: http://codex.wordpress.org/Function_Reference/get_template_part
*/
get_template_part(\'post\', \'homepage\');
endwhile;
else :
get_template_part(\'post\', \'noresults\');
endif;
get_template_part(\'navigation\');
?>
<?php $theme->hook(\'content_after\'); ?>
</div><!-- #content -->
<?php get_sidebars(); ?>
<?php $theme->hook(\'main_after\'); ?>
</div><!-- #main -->