admin管理员组

文章数量:1415420

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 question

I'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 question

I'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
  • This doesn't appear to be a WordPress-specific question. It sounds like an HTML/CSS question. Note: WordPress doesn't really care how you define your HTML/CSS markup. – Chip Bennett Commented Nov 16, 2012 at 16:02
  • 1 What are your theme-development references? Are you studying how to structure a theme? – brasofilo Commented Nov 16, 2012 at 17:00
  • I've reviewed the Codex (which I obviously need to review again) and I am using a book called Professional WordPress. Would you have any advice on other reference items/tools that can be used? Thank you very much. – lizl-d Commented Nov 16, 2012 at 17:46
  • Search this Stack as there are plenty of nice Q&A's. I'd suggest you to reframe the Question (or open a new altogether) asking specifics that you're not understanding. See: wordpress.stackexchange/questions/how-to-ask – brasofilo Commented Nov 16, 2012 at 18:25
  • 1 @brasofilo You can add a tag link with using [tag:theme-development]. – kaiser Commented Nov 16, 2012 at 20:24
 |  Show 1 more comment

1 Answer 1

Reset to default 1

To 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 named header.php.
  • The get_template_part( 'loop' ) template tag will include a file named loop.php
  • The get_sidebar() template tag will include a file named sidebar.php
  • The get_footer() template tag will include a file named footer.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