Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Changing a specific page in width Reply To: Changing a specific page in width

#250323
Atelierbram
Participant

In your page.php you could maybe use a conditional statement to exclude this page from using the container-small class. Something like:

<div class="container <?php if !( is_page( "bio" ) ) echo 'container-small'; ?>">

Maybe even make a different template for this “Bio”-page, like page-bio.php.

Alternatively in CSS you can use one of the classes which are set on the body-tag with the specific page-ID, here: .page-id-321, to target the styles you want to change within your stylesheet.