Hi Thomas,
The easiest way around this would be to disable the click event on the product name links. Adding the following to the “Custom CSS” box for your catalogue (found by going to the “Catalogues” tab and clicking on your catalogue) should do the trick:
h2.upcp-tabbed-product-name a {
pointer-events: none;
cursor: default;
}
Yes that is a solution but Google still sees the /?Product_ID=40 and the robots still go and check it.
Why don’t you tell me where to find the anchor of the title for me to disable it ?
Cheers
Any updates you make to core plugin files will be overwritten if you update the plugin.
Shortcodes.php file in the Functions folder. Search for
<h2 class='upcp-tabbed-product-name'>
Yes I’m aware but I have to otherwise I’ll get penalized by google with duplicated content…
I found the line and tried different things but I get an error 500. Could you please tell me what shall I put to have href=”#” for the link ?
Maybe it’s something you want to improve on your next version ? We don’t really need a link to the same product on a product page.. I’m not sure what’s the purpose of it…
Many thanks
Hi Thomas,
Search for the following line:
$ProductString .= "<h2 class='upcp-tabbed-product-name'><a class='no-underline' href='" . $SP_Perm_URL_With_HTTP . "' itemprop='name'>" . apply_filters('upcp_product_page_title', $Product->Item_Name, array('Item_ID' => $Product->Item_ID, 'Item_Title' => $Product->Item_Name)) . "</a></h2>";
And replace it with:
$ProductString .= "<h2 class='upcp-tabbed-product-name'><a class='no-underline' href='#' itemprop='name'>" . apply_filters('upcp_product_page_title', $Product->Item_Name, array('Item_ID' => $Product->Item_ID, 'Item_Title' => $Product->Item_Name)) . "</a></h2>";