add site wide header / title


I have created my own custom headers and site banners on the woocommerce pages.

I use this to remove the title from the sidebar in my single product page:

remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_title', 5 );

I then use woocommerce_before_main_content with add_action hooks to add the title where i want. In addition i use this method to add by own custom site banner.

My question is, how do I do the above on all other pages on a wordpress site? i.e. contact, about etc.

user2007920 3 years 2020-08-12T17:10:20-05:00 0 Answers 47 views 0

Leave an answer