Support » Themes and Templates » quick help with css editor and page id

  • Resolved nkyocum

    (@nkyocum)


    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. :\

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator Andrew Nevins

    (@anevins)

    Forum moderator

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

    nkyocum

    (@nkyocum)

    whoops sorry!

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

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

    Moderator Andrew Nevins

    (@anevins)

    Forum moderator

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

    nkyocum

    (@nkyocum)

    Gotcha.

    So what can i do to fix that?

    Moderator Andrew Nevins

    (@anevins)

    Forum moderator

    Really not sure. Sorry.

    nkyocum

    (@nkyocum)

    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.

    WPyogi

    (@wpyogi)

    Forum Moderator

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

    nkyocum

    (@nkyocum)

    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

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘quick help with css editor and page id’ is closed to new replies.