• Hello,

    Is it possible to exclude parts of the post content by a div’s class name? The site in mind is using beaver builder that includes WP menus in a sidebar type beaver builder widget. This is causing the menus to be indexed inside the post content. Since this content is dynamic, is there a way to use a filter to exclude the sidebar widget by defining a classname of ‘sidebar’ ?

    Thank you,
    -Jon

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

    (@msaari)

    The relevanssi_post_content filter hook gives you the post content before Relevanssi indexing sees it. You can manipulate it at will at that point and remove the unwanted divs.

Viewing 1 replies (of 1 total)
  • The topic ‘Exclude post content by class name’ is closed to new replies.