Search
 
SCRIPT & CODE EXAMPLE
 

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);
Comment

PREVIOUS NEXT
Code Example
Php :: json_encode alternative 
Php :: faker image laravel 8 
Php :: get cookie in laravel 
Php :: how to make a json request in php 
Php :: Create a table with PHP in html 
Php :: install php unzip 
Php :: magento2 get full details of order collection using root script 
Php :: laravel auth 
Php :: laravel has many 
Php :: strip non numeric and period php 
Php :: Difference in seconds between datetime 
Php :: acf get image id sub_field 
Php :: symfony messenger 
Php :: codeigniter 4 delete redirect with data 
Php :: wordpress create comment programmatically 
Php :: php declare array 
Php :: laravel simplexmlelement not found 
Php :: array push in php 
Php :: laravel 6 make http request 
Php :: template string php 
Php :: laravel s3 download file 
Php :: PHP trim — Strip whitespace (or other characters) from the beginning and end of a string 
Php :: casts laravel 
Php :: php remove value from array 
Php :: php insert to mysql 
Php :: laravel create many 
Php :: how to run curl command through php script 
Php :: acf add options page to custom post type 
Php :: object oriented programming php 
Php :: get array of last 3 dates with carbon 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =