• I am using the Gallery Pro theme with Woocommerce with the Genesis Connect for WooCommerce plugin. When I go to the product by category archive page, it displays both the archive title element and the page title element which looks duplicative.

    See, eg, https://deborahlouie.com.au/product-category/book/

    <main id=”genesis-content” class=”content”>
    <div class=”archive-description taxonomy-archive-description taxonomy-description”>
    <h1 class=”archive-title”>Book</h1>
    </div>
    <h1 class=”page-title”>Book</h1>
    <p class=”woocommerce-result-count”> Showing the single result</p>
    <ul class=”products”>
    </main>

    What is the best method to hide/remove one of these elements from the archive listing? and are there adverse SEO implications?

Viewing 3 replies - 1 through 3 (of 3 total)
  • I found this when researching the same problem:
    Try adding this code to your functions.php file –

    
    //* Remove duplicate page-title from WooCommerce archive pages
    add_filter( 'woocommerce_show_page_title', 'envy_hide_page_titles' );
    function envy_hide_page_titles() {
        if ( is_shop() )  // Exclude Shop page
        return true;
    }

    This worked perfectly on Genesis theme, too. Thanks!

    aekotas

    (@aekotas)

    Thank you – this did exactly what I needed it to! (Customizing the Boss Pro theme for Genesis).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to hide/remove page title on product category archive’ is closed to new replies.