Closed. This question is off-topic. It is not currently accepting answers.admin管理员组文章数量:1415420
Want to improve this question? Update the question so it's on-topic for WordPress Development Stack Exchange.
Closed 12 years ago.
Improve this questionI'd like to create a theme with this layout for the homepage.
At the moment I am working off an already existing html website I am a confused about what the white and green/blue part of the layout should be named, i.e. what file name it should have.
Thus far I have the bottom footer and the light blue background set up, but am at a lost for what the body file should be (to get it centred with the white background).
Thank you in advance for any help.
Closed. This question is off-topic. It is not currently accepting answers.Want to improve this question? Update the question so it's on-topic for WordPress Development Stack Exchange.
Closed 12 years ago.
Improve this questionI'd like to create a theme with this layout for the homepage.
At the moment I am working off an already existing html website I am a confused about what the white and green/blue part of the layout should be named, i.e. what file name it should have.
Thus far I have the bottom footer and the light blue background set up, but am at a lost for what the body file should be (to get it centred with the white background).
Thank you in advance for any help.
Share Improve this question edited Aug 26, 2019 at 8:51 Glorfindel 6093 gold badges10 silver badges18 bronze badges asked Nov 16, 2012 at 15:54 lizl-dlizl-d 1 6 | Show 1 more comment1 Answer
Reset to default 1To the extent that this question is WordPress-related, here's what you need to know:
Start with a file named index.php
.
Give that file the following markup:
<?php
get_header();
get_template_part( 'loop' );
get_sidebar();
get_footer();
?>
- The
get_header()
template tag will include a file namedheader.php
. - The
get_template_part( 'loop' )
template tag will include a file namedloop.php
- The
get_sidebar()
template tag will include a file namedsidebar.php
- The
get_footer()
template tag will include a file namedfooter.php
What you put inside those template-part files is entirely up to you.
For more detailed information, refer to the Codex:
- Stepping Into Templates
- Theme Development
本文标签: Theme layout for home page
版权声明:本文标题:Theme layout for home page 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745213798a2648043.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
[tag:theme-development]
. – kaiser Commented Nov 16, 2012 at 20:24