WordPress.org

Ready to get started?Download WordPress

Forums

body class and permalinks (3 posts)

  1. geekstyle
    Member
    Posted 4 years ago #

    Hello.
    I am trying to either set up a separate css style sheet for each permalink page or change the background image for each permalink page.
    I first tried to do this using the ClassyBody plugin and got no love.
    Is it obsolete in the latest version of wordpress or is it just it doesn't work with permalink names?

    Now I am trying to figure out how in the header to check what page I am on then add a custom BG or style sheet.
    Any help is appreciated.
    Thanks
    David

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Have a look at:

    http://quirm.net/2009/08/07/changing-headers-with-wordpress-body_class/

    Should be simple to use the same approach for the background/class changes on each permalink page.

  3. geekstyle
    Member
    Posted 4 years ago #

    esmi
    I tried that yesterday and it doesn't seem to do anything with the permalinks as

    body.vlog #body url{background-image:url(images/wpBG2.jpg;}

    how would this work do change the whole stylesheet?
    I really appreciate any help I can get.

Topic Closed

This topic has been closed to new replies.

About this Topic