New Landing How can we help? Themeforest Theme Support Neighborhood Hide product category link on archive pages

Viewing 6 posts - 1 through 6 (of 6 total)
  • #51152
    Planx
    Member
    Post count: 19

    Please could you let me know which file to edit to remove the product category from category listings?

    Essentially, the same as question #1 from this post, but I’d prefer to solve it by removing the output from the php files rather than using css to hide it (not great for SEO).

    Thanks!

    Phil

    #51611
    Melanie – SUPPORT
    Member
    Post count: 11032

    Hey, in category.php remove

    <div class="heading-text">
    			<h1><?php single_cat_title(); ?></h1>
    		</div>

    Cheers

    #51786
    Planx
    Member
    Post count: 19

    Hi Melanie, sorry I don’t think I was very clear in my question. I meant the category links which are placed under each product in a category view.

    For example, the part in the attached screenshot which says “Jackets, Tailoring”.

    Thanks

    #52002
    Melanie – SUPPORT
    Member
    Post count: 11032

    Yep,

    in content-product.php remove

    			echo $product->get_categories( ', ', '<span class="posted_in">' . _n( '', '', $size, 'woocommerce' ) . ' ', '</span>' );
    
    

    Cheers

    #52213
    Planx
    Member
    Post count: 19

    Perfect, thanks!

    #52316
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Thanks Melanie

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