Before you ask please READ THIS

Hide category line on products display

in Fame Posts: 119
Hi my friend,
I have a good question for you.
Is it possible to delete the category line under the products? (the part in the pic).
But not with css, I need it to be deleted from the page code, is that possible?
Today I was talking with an IT engineer and he told me that for the page speed and for the SEO it's better to delete it.
Can you help in some ways?
screenshot-air.jpg
1366 x 768 - 175K

Comments

  • AirAir
    edited October 2015 Posts: 10,970
    garocchi said: Today I was talking with an IT engineer and he told me that for the page speed and for the SEO it's better to delete it.
    Can you help in some ways?
    This sentence only makes sense if you wanted to remove this links anyway.
    But it can also be understand in way that having this links is bad for SEO and page speed.

    Anyway:
    Go to fame\woocommerce\content-product.php line ~111 and delete this code:
    
                //categories
                $cat_count = sizeof( get_the_terms( $product->id, 'product_cat' ) );
                echo $product->get_categories( ', ', '<span class="posted_in">', '.</span>' );
    
    
    With kind regards.
    Post edited by Air on
  • Posts: 119
    HI... honestly when people tells me these things I get blank.. ahaha I do not understand anything of code or something else... but this man got 150.000 unique visit on his site and I decide to trust him... :-)
    I'm changing all website following his tips... hope this work... :-)
    Thanks for your help man..

  • AirAir
    Posts: 10,970
    OK :-)
    Hope it will boost your site ;-)

    With kind regards.
  • edited October 2015 Posts: 119
    I should have kept this line... ahahahahah
    //product name
                echo '<a class="product_name" href="'.get_permalink().'">'.get_the_title().'</a>';
    it deleted also the product name.... :-) :-) :-)
    Thanks
    Post edited by Air on
  • AirAir
    Posts: 10,970
    Yes, I updated code before your previous reply :-)
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!