• Hi

    I am not new to wordpress but am new to customizing it….I have a site that i put up that uses a specific template and there is just one style css file for it….I created a NEW templat e file for a certain page and now I want to make that page a FULL WIDTH page and i am having a problem doing it…..Most of the site is the standard 2 column design and and i am using a static front page. I want to make my page that i made the custom template for be a full width page….but If i change the width in the css file it is going to make all the pages full width….My question is what is the best way to do this so i can chnage that specific page to be full width without changing other pages on the site….is there a was to specify a certain css file for a certain template? What is the best way to acheive what i need?

    Any help is appreciated

Viewing 3 replies - 1 through 3 (of 3 total)
  • you could try and use body_class() in the body tag; and then style the width of the div in question.

    <body <?php body_class(); ?>>

    this will give you some extra css classes to use; one of which will be .page-template-yourtemplatename-php

    in style.css you can use this (using #content as an example):
    .page-template-yourtemplatename-php #content { width: 999px; }

    Thread Starter mfreund

    (@mfreund)

    thanks much for your help…I got it figured out…..it was the post-wrapper that fixed it.

    Hi it seems you managed to fix the exact problem I have!

    Could you take a look and see if the fix you used would be possible on my gallery page :-

    http://www.easy10.co.uk/?page_id=65

    Any help would be much appreciated – I have managed to remove the sidebar by making a new template, just need to adjust the page width on that page now and I’m ready for the next million problems lol!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘CSS and Template…Help Needed Changing Width’ is closed to new replies.