Support » Plugin: Relevanssi - A Better Search » Possibility to add body class where custom search shortcode resides?

  • George


    I was wondering if it was possible to add a body class through a hook or something. I have already created a custom post type category archive by modifying the archive CSS and I would like to be able to retain that look after the results appear. Would that be possible?

Viewing 1 replies (of 1 total)
  • Plugin Author Mikko Saari


    To edit body classes, you can use the body_class filter hook. That should work, as long as your theme supports it (and if it doesn’t, fixing that is simple).

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.