Support » Themes and Templates » body class and permalinks

  • 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • esmi

    (@esmi)

    Forum Moderator

    Have a look at:

    Changing Headers with WordPress body_class()

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

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘body class and permalinks’ is closed to new replies.