Support » Plugin: Genesis Connect for WooCommerce » Product Category pages have lost their titles

  • 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 15 replies - 1 through 15 (of 19 total)
  • Similar things happened on the last update – I have pinged Genesis support. I don’t understand why something like this is not tested. It is not like there aren’t a really big community of Genesis + woocommerce users. I am sure Genesis will come to the rescue quickly like last time.

    Plugin Contributor Nick Cernis

    (@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/

    Well done Nick – just used the functions.php suggestion and it works perfectly. However, what is going to be the best long term solution? 1 or 2. Also, can we not have a long term solution once and for all. This is the second time around on this problem. I already use this just above your proposed function to avoid a similar issue.

    /** 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 reply was modified 1 year, 3 months ago by  frenchomatic.
    Plugin Contributor Nick Cernis

    (@modernnerd)

    Glad that proved helpful, @frenchomatic — thanks for trying it out.

    I would use the code I posted above if you already have Archive Intro Text and Headlines set for your product categories.

    For those not using the Genesis Archive Intro Text or Archive Headline, adding a regular Description to your product category and checking your product category title is not being filtered or hidden is a good option.

    Adjusting the headings in Genesis Connect is usually a reaction to changes in the WooCommerce templates. I’m sorry for the edits you’ve had to make to correct things here.

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

    Plugin Contributor Nick Cernis

    (@modernnerd)

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

    Thank you, Nick!!!

    Confirming this. The only way to fix the title problem will be to include the code in the functions.php file? You don’t plan making this work without the code?

    Plugin Contributor Nick Cernis

    (@modernnerd)

    @hotcookie There’s a prerelease version of the plugin with a potential fix for this issue if you prefer not to use the code above.

    If you’d like to try it, you could:

    1. Take a full backup of your site.

    2. Deactivate and uninstall the current version of Genesis Connect.

    3. Install and activate the prerelease version available here.

    4. Check your product archive pages to see if the Genesis archive heading and intro text is then visible again.

    5. Report any issues here or at https://github.com/copyblogger/genesis-connect-woocommerce/issues/21.

    My question was on whether you ever planned to fix. Version 0.9.9 is working. Nothing in version 0.9.10 that I need.

    Good to hear you plan to release a version that doesn’t require a functions.php hack. I’ll way until that is official.

    The pre-release download solved a problem that had frustrated me for many, MANY hours over the last two weeks.

    Much appreciated.

    Mr. Nick Cernis (or anyone who might know),

    I’m scared to update to woocommerce 3.3.5, lest the pre-release won’t be compatible and my archive settings vanish. The pre-release was a godsend, and I spent much time creating logos and adding them to product category pages via archive settings.

    Do you know if the pre-release ‘genesis connect for woocommerce’ download above will work with woocommerce 3.3.5, released very recently?

    I’ve saved woocommerce 3.3.4. If it didn’t work, would it simply be a matter of deleting the new version of woocommerce and re-installing the previous version – pls forgive my ignorance, I’m a total noob.

    I’m thinking of just leaving things ‘as is’ for a while. Really don’t wish to risk losing my work.

    Any advice is appreciated – as stated previously, the pre-release really helped my situation.

    Thanks.

    Plugin Contributor Nick Cernis

    (@modernnerd)

    Hi, @glitzformals.

    The pre-release plugin above works with WooCommerce 3.3.5 in my tests.

    You could take a full site backup prior to updating, though — always a good idea if you’re unsure about an update.

    Rolling back would be a case of restoring from your backup or installing 3.3.4 again if needed.

    It worked!

    I really appreciate your assistance. Sorry for the delay but I was waiting for clarification from my host, studiopress sites, on exactly how the backup process works in case something went wrong (I’m still waiting but decided to risk it – whew).

    Seriously, you’re making the world a better place for wp beginners.

    Rest easy at night, sir. Thank you.

    Oscar

    glitzformals

    (@glitzformals)

    Mr. Nick Cernis,

    I’m concerned that I’m relying exclusively on this thread anytime woocommerce updates. I’m very sorry to ask again, but do you know if the very helpful version of ‘genesis connect for woocommerce’ you’ve provided is compatible with the new version 3.4.0?

    Once again, the goal is for my archive settings to continue displaying.

    I’m not sure if this is dangerous or not, but I rely exclusively on my excellent host studiopress sites for any and all backups. They’ve assured me they can revert if something goes wrong but I’d much rather that nothing did.

    Also, for the future, is there a way I could figure this out for myself without having to bother you on this thread (other than just doing it and asking studiopress sites to revert to a backup if something goes wrong)?

    Thanks so much

    Oscar

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