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

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #250317


    Im having difficulties expanding the content on (

    in custom css without effecting the grid on (

    How do I target a single page like “bio” without its being applied to different pages?


    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.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.