WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] quick help with css editor and page id (9 posts)

  1. nkyocum
    Member
    Posted 1 year ago #

    I wanted to change it's style on certain page only.
    (on css editor dashboard)

    I tried adding

    #content {
    	width: 100%;
    }

    ^ It works. It affects every page. However, i only want it to apply ONE page only.

    So, i went and found my page id which is 268.

    I used

    .page-id-268 #content {
    	width: 100%;
    }

    But it doesn't do anything. :\

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    Link the webpage with the issue, or we cannot diagnose it.

  3. nkyocum
    Member
    Posted 1 year ago #

    whoops sorry!

    http://www.yocumsnursery.com/products/

    ^ that's the page i'd like to apply to.

  4. Andrew
    Forum Moderator
    Posted 1 year ago #

    Right click the webpage. View source.
    As you can see, there is no such <body> (or any) class with page-id-268.

  5. nkyocum
    Member
    Posted 1 year ago #

    Gotcha.

    So what can i do to fix that?

  6. Andrew
    Forum Moderator
    Posted 1 year ago #

    Really not sure. Sorry.

  7. nkyocum
    Member
    Posted 1 year ago #

    Hmm, do you know how to center aligning the page then? It's stuck on the right as you can see. So i'm not sure where to do this.

  8. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    The content section of that page IS full width already. What is it you are trying to change on that page?

  9. nkyocum
    Member
    Posted 1 year ago #

    I got it fixed that's why, WPyogi! :) Turns out i didn't have the layout right to begin with. I feel stupid now! >_<

    Dashboard > Appearance > Layout > Default Layout Template

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.