Unfortunately due to other commitments, we are no longer able to provide support for these themes.

All our themes are now free and can be downloaded by anyone to use/modify however they wish.

We want to thank all our users for their support over the years. All the best in 2020 and beyond.

Woocommerce Product & Category Page Title Problem

brianmorganbrianmorgan Club Member, CinchPress, Feedpop, ReadyFolio, Rough Print, Smooth Post, Stage, MockFive, FoxyNews, Line it Up, Fremedy, Clip Cart, Reactiv, Derby
You can see the site I'm having issues with at: https://www.mawaskitchen.com

Specifically:

Product:

https://www.mawaskitchen.com/product-category/gift-certificategift-card/

and

Category:

https://www.mawaskitchen.com/product-category/ticket/

We're converting the site over, so it's in maintenance mode, but it should be back online by the time you see this ticket.

I've run into a problem where the Richmond theme is changing the title of all the Woocommerce product pages to "The Blog" and the title of all the Woocommerce category pages to "The Archives."

I've got the Genesis Connect for Woocommerce plugin installed.

I'm pretty sure that the "culprits" are lines 182 and 184 of Richmond's functions.php.

182 elseif (is_home() || is_single()) { echo "<h2 class=\"page-title\">".__('The Blog','themedy')."</h2>"; }

184 elseif (is_archive()) { echo "<h2 class=\"page-title\">".__('The Archives','themedy')."</h2>"; }

I think that we just need a couple of other conditional statements to keep Richmond from overriding the Woocommerce titles, but I didn't want to mess up the theme. The client absolutely loves the design.

As always, Thanks!

Comments

  • Options
    Mark_HodderMark_Hodder Administrator, Lifetime Member
    Yes, I think "is_woocommerce()" from here is what you need: https://docs.woothemes.com/document/conditional-tags/

    I don't know how you want to change it but you can try changing it to:

    elseif ((is_home() || is_single()) AND !is_woocommerce()) { echo "<h2 class=\"page-title\">".__('The Blog','themedy')."</h2>"; }

    elseif (is_archive() AND !is_woocommerce()) { echo "<h2 class=\"page-title\">".__('The Archives','themedy')."</h2>"; }

    The exclamation mark at the front means "and is not a woocommerce page" then do this.
    Need Additional Help?
    - Check out the Resource Center for helpful tutorials and hints.


    image
  • Options
    brianmorganbrianmorgan Club Member, CinchPress, Feedpop, ReadyFolio, Rough Print, Smooth Post, Stage, MockFive, FoxyNews, Line it Up, Fremedy, Clip Cart, Reactiv, Derby
    Thanks! I will give it a shot later today and let you know how it works.

    BTW - We've had several clients rave about the hamburger menus in Richmond. I mean really, really, really get excited. I'm scared to show them to anybody who's on an old style collapsing or dropdown menu. I absolutely love the fact that your Richmond menus deftly handle the primary and secondary menus. Great work!
  • Options
    Mark_HodderMark_Hodder Administrator, Lifetime Member
    Thanks, mobile menus are something we always have our eye on - it's still an area very much in flux in the responsive design world ;)
    Need Additional Help?
    - Check out the Resource Center for helpful tutorials and hints.


    image
  • Options
    brianmorganbrianmorgan Club Member, CinchPress, Feedpop, ReadyFolio, Rough Print, Smooth Post, Stage, MockFive, FoxyNews, Line it Up, Fremedy, Clip Cart, Reactiv, Derby
    Mark -

    Those code changes got me part way there. It removed the "The Archives" from the Woocommerce Product Category Page. Individual Product pages still say "The Blog" though.

    https://www.mawaskitchen.com/product-category/gift-certificate-gift-card/
  • Options
    Mark_HodderMark_Hodder Administrator, Lifetime Member
    Do you know if The Blog is coming from that line you mentioned or somewhere else? I would just change The Blog text on that line to The Blogs or whatever and see if it updates that area.

    You could also use CSS if you just want to hide that area, i.e
    .single-product .introduction {
         display: none;
    }
    Need Additional Help?
    - Check out the Resource Center for helpful tutorials and hints.


    image
This discussion has been closed.