• Hi there

    Please help – all the pages, product categories and products pages are showing a product name as the title instead of the correct page title. You can see it here: https://perthtraininginstitute.com.au/shop/. I am using the Enigma theme

    The breadcrumb itself is also not working properly on my shop pages (it seems to work well on the other pages)

    Any help appreciated.
    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter heathervh

    (@heathervh)

    Ps, this is in the Engima breadcrum, and not woocommerce related.

    You have to first create child theme for Enigma Theme and then copy breadcrums.php template from parent theme(Enigma) to child theme. Then you have to replace line#5 with below code in this template,it will resolve your title issue on woocommerce pages, you can also use similar condition for breadcrumb.

    <h1><?php
     if(is_home()){
      echo "";
     }elseif(is_shop() || is_product_category() || is_product_tag()){
      echo woocommerce_page_title();
     }else{
      the_title();
     }
    ?></h1>

    Thank you

    Thread Starter heathervh

    (@heathervh)

    Brilliant, thank you so much – been tearing my hair out all day! Works a treat!

    Hi @codemovement.pk

    Thanks for support.

    Thanks.

    Hello,

    I am having issue with my single product page showing Blog as the subtitle instead of product category or so, please what is the solution… here is screen shot – https://prnt.sc/en5fq6

    Kindly help..thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Shop pages not showing correct title’ is closed to new replies.