Are there shortcodes for pro headers like there are for global blocks? I want to output a header using a php function, the same way you can with a global block.
Nevermind. I found the function. If anyone else needs to know it’s this:
add_filter(‘cs_match_header_assignment’, ‘custom_search_header’);
function custom_search_header($match) {
if ( in_category(‘blog’) ) {
$match = 81; // the post ID for your header
}
return $match;
}
Hey @Sheri17,
We are just glad that you have figured out a way to correct the said issue.
We really appreciate for letting us know!
Best Regards.
1 Like
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.