• Resolved losrack

    (@carlos-jaramillo)


    Hi,

    I would love to hide from home page (ID=36) , a search widget that I have on my header …and also clear the space it occupies on that page.

    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Do you have a link?

    Hi Carlos,

    Your best bet would be to create a new function hooked into init that queries the current page using is_page() then runs;

    remove_action( 'storefront_header', 'storefront_product_search', 40 );

    That should do the trick.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide search widget on home page without plugin’ is closed to new replies.