• Resolved zenmaster

    (@snowbyrd)


    Trying to make a page that’s full width for most of the pages, but also want to be able to have a blog section with sidebar. I figured out how to make the sidebar show up only on a specific page by using an if (in_category) statement, but I want to be able to change the width of the main content area from 960 to 680 so that the sidebar fits on that page. My CSS defines the width for the primary content and secondary content (sidebar) areas separately, but I would imagine I need to figure out a way in PHP to redefine the CSS of the primary content area only when I’m looking at the blog, but maybe there’s another way to go about this that’s easier and more “correct”? Here is the site:

    http://tommybyrd.net/amelias/wordpress/

    All of the links except “blog” should go to a full width page.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter zenmaster

    (@snowbyrd)

    OK typing it out I think I got it, but I’d like to know if there’s a more accepted way of doing it. I just made a conditional call in the header and defined the width in the DIV. This means my CSS file still shows 960px, but when I’m in a blog it’s being set to 680px because it’s “in_category(‘blog’)”

    Seems to work. Would love to know if this is the proper way to do this.

    jquadra

    (@jquadra)

    I’d love to know the exact code you used! I’m having this same issue now and can’t seem to find a solution.

    Michael

    (@alchymyth)

    @jquadra
    please start your own topic – you are using a different theme.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change content width for different pages’ is closed to new replies.