Home Forums WoodMart support forum The content goes into the search form.

The content goes into the search form.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #417237

    loralora
    Participant

    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.
    #417242

    loralora
    Participant

    Sorry, you can close the topic, I found the problem

    #417278

    Hello,

    We are glad you have found the solution.

    If you have any questions please feel free to contact us.

    Best Regards

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

The topic ‘The content goes into the search form.’ is closed to new replies.