Products-Page with no products does not prints that Cat description :(

This topic has 9 replies, 3 voices, and was last updated 1 years, 8 months ago ago by oslov

  • Avatar: oslov
    oslov
    Participant
    February 26, 2023 at 12:20

    Hi again I have a problem with X-Store theme that is related to products_cat pages with no products

    your theme just prints a Not-Found Message and do not prints the cat Descriptions (before-products-desc && after-products-desc)

    and I’ve forced to add my own PHP codes inside the no-products-found.php file inside the theme! to Avoid SEO issues

    and I could’nt use the Child-Theme because it had bug issues with the hole Header of my site (When i activated the child the Header jut Vanished :/)

    I will be very satisfied if you add a PHP snnipet like my custom PHP code inside that PHP-file

    Now i solved the problem in my own may but im sure my customer will have a lot of problems when he/she upgrade X-Store theme to a newer Version!

    Thanks alot :))

    8 Answers
    Avatar: oslov
    oslov
    Participant
    February 26, 2023 at 12:22
    Avatar: oslov
    oslov
    Participant
    February 26, 2023 at 12:23

    Thanks Again for your great Work! 🙂

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 26, 2023 at 13:13

    Hello, Oslov,

    I’ve passed your request on to our dev team. They will be able to review it after the weekend.

    Please note that the child theme does not inherit the theme options of the parent theme, if you enable the child theme, you need to import options from the parent theme.
    Go to Theme Options > Import/Export > download the export file. After that install the child theme > enable/activate it and go to Theme Options > Import/Export > import your options and reload the page without saving! Save options only after reloading. Check your site after that.

    Kind Regards,
    8theme team

    Avatar: oslov
    oslov
    Participant
    February 26, 2023 at 16:08

    ok thanks for your answering about the tips in using the Xstore-Child !

    :)_

    i did’nt know that about the theme options

    Avatar: oslov
    oslov
    Participant
    February 26, 2023 at 17:36

    one more question I just installed the child theme & imported the settings everything now is ok!

    Can I overide this PHP file no-products-found.php located inside Xstore->Woocomerce->Loop->no-products-found.php

    with my own PHP code inside the Child-Theme?

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    February 27, 2023 at 05:29

    Hello,

    Thank you for your inquiry. You can copy the file (no-products-found.php) from the Parent Theme and paste it under the same location in the Child Theme and customize it as per your requirements.

    Alternatively, you can try overriding the functions. For more information, please refer to the following thread: https://wordpress.org/support/topic/how-to-override-a-parent-theme-function-in-child-theme/#:~:text=Or%2C%20you%20can%20override%20an,a%20callback%20to%20a%20hook.&text=You%20remove%20this%20filter%20hook,%2C%20’append_thank_you’%20)%3B%20%7D%20)%3B

    We hope this information is helpful.

    Best Regards,
    8Theme’s Team

    Avatar: oslov
    oslov
    Participant
    February 27, 2023 at 10:04

    unfor there is no function in that PHP file to override and i created that PHP file with my own codes inside the same directories into the Child-theme but It not worked at all!

    could you please give more assist to me?

    https://electno.com/wp-content/uploads/2023/02/done.png

    Avatar: oslov
    oslov
    Participant
    February 27, 2023 at 10:25

    I fixed it!

    thanks no need to check anything

    Thanks a lot!

    the child-theme has worked

  • Viewing 9 results - 1 through 9 (of 9 total)

The issue related to '‘Products-Page with no products does not prints that Cat description :(’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.