• Resolved dlmweb

    (@dlmweb)


    Using Connect v0.9.10 and Woo v3.3.1
    In the latest round of updates, I’ve lost the Page titles on my Product Category pages. The Shop page is fine, and the individual Product Pages are fine.

    But on the Product Category pages, this div just doesn’t seem to register:

    <div class="archive-description taxonomy-archive-description taxonomy-description">
    <h1 class="archive-title">Category 1.1</h1>
    </div>

    Why? What template is being used for the Product Category pages? How can I fix this?
    Many thanks.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Nick C

    (@modernnerd)

    Thanks for this report.

    Genesis Connect 0.9.10 removed the Genesis Archive Headline and Intro Text from product taxonomy pages. This was to prevent the product headline being duplicated if an Archive Title is set and your theme does not remove the WooCommerce Product title on archive pages:

    https://github.com/copyblogger/genesis-connect-woocommerce/issues/4

    There’s a proposal in a pull request to re-instate the Archive Title. For now if you would like to use the Genesis Archive Title and Intro in place of the WooCommerce product title and category description, you can:

    1. Add this code to your theme’s functions.php to reinstate the Genesis title and archive intro on product archives and remove the WooCommerce title:

    add_action( 'genesis_before', 'custom_woocommerce_category_titles' );
    /**
     * Reinstate Genesis page title and description on WooCommerce category archives.
     */
    function custom_woocommerce_category_titles() {
    	if ( class_exists( 'WooCommerce' ) && is_product_category() ) {
    		add_filter( 'woocommerce_show_page_title', '__return_false' );
    		remove_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description' );
    		add_action( 'genesis_before_loop', 'genesis_do_taxonomy_title_description', 15 );
    	}
    }

    2. You would then fill in the Archive Intro Text and Archive Headline for your product category if it’s not already filled.

    Alternatively, instead of making this change, you can add the intro text to the Category Description instead of the Archive Intro.

    If the WooCommerce product category title does not then appear above the category description, make sure that your theme does not use this filter in its functions.php:

    add_filter( 'woocommerce_show_page_title', '__return_false' );

    If anyone needs further help with this, I recommend contacting StudioPress support with a link to your category archive page, as well as a description or link to a screenshot of your product category archive settings.

    You’ll find the help form here: https://my.studiopress.com/help/

    Thread Starter dlmweb

    (@dlmweb)

    Ditto – worked perfectly!
    And thanks for the explanation so I can keep an eye on it in the future.
    Much appreciated.

    Plugin Contributor Nick C

    (@modernnerd)

    You’re welcome, @dlmweb! Thanks for following up to let us know this helped.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Product Category pages have lost their titles’ is closed to new replies.