Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Append #text #string #WooCommerce #product #title #loop
ADD COMMENT
Topic
Name
7+9 =