Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Append a text string to WooCommerce single product title

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

function woocommerce_template_single_title_custom(){
    $additional_text = ' More Info';
    the_title( '<h3 class="product_title entry-title">', $additional_text.'</h3>' );
}
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_title_custom', 5);
Comment

Append a text string to WooCommerce product title loop

remove_action( 'woocommerce_shop_loop_item_title','woocommerce_template_loop_product_title', 10 );
function change_product_title() {
    $additional_text = ' More info';
    echo '<h2 class="woocommerce-loop-product__title">' . get_the_title() .$additional_text.'</h2>';
}
add_action('woocommerce_shop_loop_item_title','change_product_title');
Comment

PREVIOUS NEXT
Code Example
Php :: insert chevron on form select field on caldera 
Php :: tackel discount in javascript 
Php :: ERROR: The following modules depend on mpm_prefork and need to be disabled first: php7.2 
Php :: switch php version ubuntu 
Java :: spigot execute command as console 
Java :: java how to output to a executable 
Java :: java stack char 
Java :: spigot broadcast message 
Java :: maven spring boot devtools install 
Java :: import android.support.v4.app.ActivityCompat; 
Java :: minecraft bedrock save location 
Java :: java android show toast 
Java :: java filewriter new line 
Java :: spigot how to create custom items 
Java :: java check if able to parse int 
Java :: statement delete sql java 
Java :: how to get the width and height of a string in java 
Java :: java random 6 digit number 
Java :: jackson ignore null 
Java :: java random max and min 
Java :: number of lines in file java 
Java :: how to set frame colo in java 
Java :: init cap java 
Java :: arraylist with values java 
Java :: Spigot API inventory close 
Java :: format localdate java 
Java :: leap year program in java 
Java :: deque in java 
Java :: spigot run code asynhronously 
Java :: consolenausgabe java 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =