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 :: PDOException::("could not find driver") windows 
Php :: get first name user 
Php :: how to change taxonomy slug in wordpress 
Php :: automatically make created_by and updated_by laravel 
Php :: wp_create_user 
Php :: timezone php 
Php :: transform text to lowercase and replace space with dash php 
Php :: join in laravel 
Php :: php string slice 
Php :: php find first occurrence in string 
Php :: laravel list of tables 
Php :: how to get all post fields in wordpress 
Php :: laravel log path 
Php :: laravel checkbox checked 
Php :: laravel project folder permissions in ubuntu 
Php :: php to list files 
Php :: phpspreadsheet set cell by column and row 
Php :: add foreign key in laravel migration 
Php :: laravel add auto increment 
Php :: next year php string 
Php :: laravel project create with version 
Php :: laravel create project with auth 2021 
Php :: send OTP php 
Php :: action after model is created laravel 
Php :: date diff in laravel 
Php :: laravel eloquent get all 
Php :: php post request 
Php :: php sort hight to low 
Php :: wordpress log errors 
Php :: laravel where multiple values 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =