2013-05-04 32 views

回答

0

找到您的模板文件中的<?php get_sidebar(); ?>,并将其移动到顶部。所以,例如,当你看到index.php时,你会得到:

<?php 
/** 
* The main template file. 
* 
* This is the most generic template file in a WordPress theme 
* and one of the two required files for a theme (the other being style.css). 
* It is used to display a page when nothing more specific matches a query. 
* E.g., it puts together the home page when no home.php file exists. 
* Learn more: http://codex.wordpress.org/Template_Hierarchy 
* 
* @package WordPress 
* @subpackage Twenty_Eleven 
*/ 

get_header(); ?> 
<?php get_sidebar(); ?> 

    <div id="primary"> 
     <div id="content" role="main"> 
+0

我做到了。但在此之后,它会进入页面的末尾。 – user2322509 2013-05-05 13:06:09