WordPress.org

Ready to get started?Download WordPress

Forums

Separate CSS File For One Page (3 posts)

  1. lenwood
    Member
    Posted 6 years ago #

    Hi All, I'd like to go from my site's standard three columns down to two on a single page. I've read through the page templates doc, but it doesn't specify how to use a separate CSS file for a single page. Any tips?

    http://codex.wordpress.org/Pages#Page_Templates

    Thanks,
    Chris

  2. moshu
    Member
    Posted 6 years ago #

    When you say "single page" are you referring to a Page or a "single post"? (the word 'single' which is always used with posts... makes it confusing)

    Actually, you do NOT need a separate CSS - just have different divs in that template of yours and add their definitions to your normal CSS file.

  3. bryonyjean
    Member
    Posted 6 years ago #

    I'm attempting exactly the same thing - I have 3 columns and because I'm trying to install an Amazon aStore, I need to drop my right hand column (on one page only) to replace it with Amazon's column to navigate the store pages.

    I've made a page template file by naming the file and pasting the rest of the code from "page.php". I've deleted the right hand column sucessfully but I have two issues that still need to be addressed:

    The new page still only spreads across the middle section of the page (and doesn't fill the space left by the right sidebar)

    For some reason there are extra navigation tabs showing where they shouldn't be. (Using my usual template when there are too many pages to be allocated individual tabs, the extra pages simply don't show - on my template pages, they're visible on the page)

    I don't know how to address these problems but if anyone can suggest some coding, I'm great at cutting and pasting!
    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic