Posts

Showing posts from October, 2022

Add functions to wordpress HEADER

In your functions.php file, add this code. Then include the actual code which should be in the header in the red section.     add_action ( 'wp_head' , 'custom_head_function' , - 999 ); function custom_head_function ( ) { ?> YOUR HEADER CODE HERE <?php };

REMOVE BREADCRUMBS FROM WOOCOMMERCE

 This one is easy.  Add this code to your functions.php file. /** * Remove WooCommerce breadcrumbs */ add_action( 'init', 'my_remove_breadcrumbs' ); function my_remove_breadcrumbs() { remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0 ); }