南京排名推广(南京产品推广)
36
2022-11-30
本文目录一览:
首页是index.php
你悲剧了,既然你看不懂代码,那你就肯定不会修改wp首页模板。
因为即使一个最简单的WP首页(index.php)也是由头部(header.php),主体(index.php),侧边栏(sidebar.php),底部(footer.php)这四部分组成的。
你想改最上面的内容(导航栏以上),就需要修改header.php,想改文章列表显示方式,就需要修改index.php,想改侧边栏显示方式,就需要修改sidebar.php,想修改最下面的内容,就需要修改footer.php。
你好:
你是想要整个日志都不显示吗?那就拿掉这块:
?php
if ( have_posts() ) :
// Start the Loop.
while ( have_posts() ) : the_post();
/*
* Include the post format-specific template for the content. If you want to
* use this in a child theme, then include a file called called content-___.php
* (where ___ is the post format) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );
endwhile;
// Previous/next post navigation.
twentyfourteen_paging_nav();
else :
// If no content, include the "No posts found" template.
get_template_part( 'content', 'none' );
endif;
?
页面模板本来就和首页不一样……如果想要某个页面跟默认页面格式不一样的话,在原来的页面模板前面加
?php
/**
* @package WordPress
Template Name: 模板名称
*/
?
另存成一个模板php就行
找到模版文件下的index.php 要编辑的可以用Dreamweaver打开编辑要修改的地方。然后上传
wordpress首页模板的介绍就聊到这里吧,感谢你花时间阅读本站内容,更多关于Wordpress 模板、wordpress首页模板的信息别忘了在云尚网络www.ysfad.net进行查找喔。
发表评论
暂时没有评论,来抢沙发吧~