Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to add more body_class for posts page template? (solved)


  • Sofian J. Anom
    Participant

    @lightcapturer

    For some purposes, I set a static page for my website, either for the front page and the posts page. Then I want to customize the posts page so that different from other pages. But when looking through firebug, I found no other body_class except “logged-in” when I login, and empty when I logout. For example, look using firebug on this page: http://buddypress.org/blog/

    My question is, how to add more body_class for the posts page template? Can anyone help?

Viewing 3 replies - 1 through 3 (of 3 total)

  • Anonymous User 96400
    Inactive

    @anonymized-96400

    Class names can either be passed directly into the body_class function or you can use the filter `body_class` to add/modify the class names.


    Sofian J. Anom
    Participant

    @lightcapturer

    Finally I got the solution by other way.

    thanks, @travel-junkie, for your response. :)


    imjscn
    Participant

    @imjscn

    @Sofian J. Anom,
    I want to add different widgets in header on different pages. Would you please share your solution?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to add more body_class for posts page template? (solved)’ is closed to new replies.
Skip to toolbar