• I’m creating a custom WP theme from scratch. The basic page structure is two-columns (main content and sidebar); however, many pages will have custom informational layouts within the main content section.

    For example, one page may have a two-column layout within the main content area, while others may have three-columns, etc.

    Do I need to use multiple style.css files? One for each custom page layout? I know how to create custom WP pages and put a theme together, so that’s not the problem. I’m concerned with the styling, and how to specify the various layouts.

    Hope this makes sense.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I assume you’ll be creating different page templates for each custom page layout?

    Just use one style.css, as long as your templates are in your overall theme, and using the same header, they will call to your style.css

    Just use different divs/classes within your templates to call to your style.css

    Thread Starter orbital2000

    (@orbital2000)

    Yes, custom templates for each page.

    Thanks for the advice – I’ll take your direction as I move forward.

    Cheers!

    I’m at this point as well – I want my “about” page to have a different layout than my front page as well as my page for tour dates/contact/etc.

    I created a single.php and using the php include function <?php if (is_page('about')) :include (TEMPLATEPATH . '/about.php'): while (have_posts()) : the_post(); ?> so that I could call up specific template for about that I can add my own classes and divs to so I can style it all in one style sheet.

    Am I on the right track here? I am really new to all this and I don’t really know if I’m doing this right or if there is a simpler way… any thoughts?

    Ok I actually realized that question probably made little to no sense. I don’t need to create an about.php page… from the page.php I’m realizing I can assign different divs and classes to the content area so that it shows up differently between the about page and the front page which is what I wanted.

    I guess what I want to know is – now will page.php style every page that is NOT the front page – the same? Or… can I style different pages differently with different page ID’s? I have a feeling when I post this website for the wordpress community to tear apart it’s going to look like a giant ball of rubber bands, :).

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Best Practices for Multiple Page Layouts in One Theme’ is closed to new replies.