New Landing How can we help? Atelier Remove link to product categories of thumbnails

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Atelier
  • #265056
    pinponketo
    Member
    Post count: 36

    I would like to remove the link to the product categories that is displayed after the title of each product in the thumbnail on the archive pages.

    Please see attachment.

    For SEO reasons the link should not appear on the code. Therefore hidding it with CSS is not recommended.

    Could you please assist me?

    thanks

    Alonso

    Attachments:
    You must be logged in to view attached files.
    #265075
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    What’s the seo issue with having categories listed?

    – Kyle

    #265104
    pinponketo
    Member
    Post count: 36

    Hi Kyle,

    The SEO issue would be to hide links with CSS. Since they will still be visible to the search engine crawler but not for the users.

    best

    Alonso

    #265107
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Yes, but why is having the category bad for SEO? It’s usually seen as good

    – Kyle

    #265117
    pinponketo
    Member
    Post count: 36

    Having a category is not bad for SEO. I want to remove the category link to fit my design. But again, I don’t want to hide it with CSS.

    cheers

    #265119
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    You will need to edit atelier/woocommerce/content-product.php and remove

    <?php
    						$size = sizeof( get_the_terms( $post->ID, 'product_cat' ) );
    						echo $product->get_categories( ', ', '<h5 class="posted_in">', '</h5>' );
    					?>

    From line 319

    – Kyle

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register