The MU forums have moved to WordPress.org

Theme modifications not applying to all pages (6 posts)

  1. laurie1smith
    Member
    Posted 16 years ago #

    Hi.

    Have just started using Wordpress to create a blog site. I have been modifying a theme/template to suit.

    Originally there were 2 sidebars to the right of the main content, but I wanted it so that there would be a sidebar on either side of the main content. I moved the Sidebar 1 Div so it came before the main content Div and that works fine. But when I have tested this online, the home page or index page has the new layout, but all other pages have the old layout?

    Any ideas would be much appreciated. Thnaks.

  2. DeannaS
    Member
    Posted 16 years ago #

    Most themes have different pages from the home page (usually home.php) and the other pages. There are a myriad of pages that can be used for posts, author pages, category pages, etc. Check your theme files. The most common thing is to have everything but the home page run through index.php.

  3. andrea_r
    Moderator
    Posted 16 years ago #

    Yeah, I think you missed some other files. :)

  4. laurie1smith
    Member
    Posted 16 years ago #

    Thanks for that. Have changed the Divs on other files to match the index.php and that seems to have worked. How do you make it so that everything but the home page runs through the index.php?

  5. DeannaS
    Member
    Posted 16 years ago #

    It's default behavior. Read up on the template hierarchy:

    http://codex.wordpress.org/Template_Hierarchy

  6. laurie1smith
    Member
    Posted 16 years ago #

    Thanks for the guidance.

About this Topic

  • Started 16 years ago by laurie1smith
  • Latest reply from laurie1smith