Hello
I’m using custom code to add some category content to the top, below the page title.
My code is below:
function addSectionInCategoryArchive_product_category() {
if( is_product_category( array( 232, 1889 ) ) ) {
echo do_shortcode('[html_block id="11592"]');
}
}
add_action( 'woodmart_after_header', 'addSectionInCategoryArchive_product_category', 5);
The problem is that the content of the html code (I wrote the word shortcode there) gets to the product search page.
Could you help me – maybe I’m using the hook incorrectly or are there other hooks that can help me?
Attachments:
You must be
logged in to view attached files.