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

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

    Hi,

    Im having difficulties expanding the content on (https://flvunge.mystagingwebsite.com/?page_id=321)

    in custom css without effecting the grid on (https://flvunge.mystagingwebsite.com/?portfolio=our-beloved)

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

    #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.

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