WordPress.org

Forums

Amend page width of only one page (8 posts)

  1. creativepassion
    Member
    Posted 2 years ago #

    I'm using a child of twenty-eleven.

    .page-id-24
    Can I affect this page only.

    And I guess I'm wanting to affect the following rules:
    .singular .entry-header, .singular .entry-content, .singular footer.entry-meta, .singular #comments-title

  2. alchymyth
    Forum Moderator
    Posted 2 years ago #

    example:

    .page-id-24 .singular .entry-header, .page-id-24 .singular .entry-content, .page-id-24 singular footer.entry-meta, .page-id-24 .singular #comments-title

    http://www.w3schools.com/css/

  3. creativepassion
    Member
    Posted 2 years ago #

    Thanks Alchymyth!!!

  4. creativepassion
    Member
    Posted 2 years ago #

    Any idea why this is having no effect then?

    .page-id-24 .singular .entry-header, .page-id-24 .singular .entry-content, .page-id-24 .singular footer.entry-meta, .page-id-24 .singular #comments-title {
    width: 50%;
    }

  5. alchymyth
    Forum Moderator
    Posted 2 years ago #

    no idea without seeing the site live.

    have you cleared the browser cache - by pressing 'CTRL F5' or 'reload' or whatever your browser needs?

  6. creativepassion
    Member
    Posted 2 years ago #

    I appreciate your help.

    I'm embarassed to show the site because it's not finished.

    Anyway, this is page 24.
    <site name removed>

  7. alchymyth
    Forum Moderator
    Posted 2 years ago #

    my mistake;
    because .singular is also one of the body_classes, the styles need to look like so:

    .page-id-24.singular .entry-header, .page-id-24.singular .entry-content, .page-id-24.singular footer.entry-meta, .page-id-24.singular #comments-title {
        width: 50%;
    }

    btw: you have a few minutes to edit your last reply if you need to remove the link...

  8. creativepassion
    Member
    Posted 2 years ago #

    That's it! Awesome thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic