When a single product is viewed, it would show the title, description of the product, etc.
So what I am trying to do is, to implement a hook for the woocommerce_page_title
(got it from here), so that I could prepend the html code for the logo in that text.
But it seems to be not working. The code I have tried is as follows:
add_filter('woocommerce_page_title',
'isa_product_title_heading');
function isa_product_title_heading($content) {
$abctemp = '<img src="'.home_url('/wp-content/uploads/2013/12/mysite_logo.400_jpg.jpg').'" />' . $content;
//echo $abctemp; die;
return __($abctemp, 'woocommerce');
}
In this figure, the yellow portion is where I am trying to insert the logo.