Support » Plugin: Related Products for WooCommerce » Add setting to change Related Products label

  • Resolved Guido

    (@guido07111975)


    Hi,

    The title of this topic says it all: it would be great if you add a setting at your settingspage for changing the Related Products label.

    Guido

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author webtoffee

    (@webtoffee)

    Hi @guido07111975,

    Please add below code snippet to your active theme’s functions.php to change the related products title.

    add_filter('wt_related_products_heading','change_related_products_heading');
    function change_related_products_heading($heading){
    	$heading = "<h2> New Heading </h2>";
    	return $heading;
    }
    Thread Starter Guido

    (@guido07111975)

    Hi,

    Thank you for your reply.

    In case of a child theme I can add this. Otherwise it would be lost in case of a theme update. So, as mentioned before, it would be great if your plugins includes a setting for this.

    Or at least don’t hook into the Related Products title. Right now your plugin changes the Related Products title from my native language back to default English again.

    Guido

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add setting to change Related Products label’ is closed to new replies.