Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Add Text Before the Product Title


remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_title', 5 );
	function woocommerce_add_custom_text_before_product_title(){

    $custom_text = '<span>My Custom Text</span>';
    the_title( '<h3 class="product_title entry-title">'.$custom_text, '</h3>' );
}
add_action( 'woocommerce_single_product_summary', 'woocommerce_add_custom_text_before_product_title', 5);
Source by yourblogcoach.com #
 
PREVIOUS NEXT
Tagged: #Add #Text #Before #Product #Title
ADD COMMENT
Topic
Name
2+2 =