Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1187794
    bringsportswear
    Participant

    I use and love X for the most part. But we have a woocommerce shop, and when using the beautiful built in search function from X-Theme the results are presented as regular post entries. Not so nice! How/where do I change so that the search results from products are shown as they would appear in a category view of woocommerce products? 🙂

    #1187795
    bringsportswear
    Participant

    I understand I will need to change template files. The question is what? And to what? since the only reason for our search function is (for the most part) searching products.

    I’m somewhat familiar with PHP/JS/HTML/CSS. I just need instructions on what to alter.

    If possible it would be great to be able to show products as products in search results and have a separate title for “page” results…

    #1187890
    Paul R
    Moderator

    Hi,

    Thanks for writing in! Regretfully, this particular customization request is outside the scope of our support as this is not related to an issue with the theme and instead has to do with your customization of it. As such, you will need to investigate this particular issue on your own or seek help from a developer should you not feel comfortable making these changes yourself. If you have any further questions about the theme, we are more than happy to provide you with assistance on these inquiries.

    Thank you for your understanding.

    #1187898
    bringsportswear
    Participant

    Hi again. It feels a little sad to see that this is one of the most common answers here in the forums. I understand that the X-Team can’t handle each individual customization requst, but at least point in the right direction?

    How can the x-theme search function and its results not be a part of X? I just want to know how the search results are handled in X. Where does the current display come from? What file? I’m not asking the code line by line. But I do expect X (the developer) to be able to answer a question regarding its own functionality and how it works.

    #1188435
    Rad
    Moderator

    Hi there,

    Before I continue, please check this https://community.theme.co/kb/customization-best-practices/. That will explain how templates are distributed within X theme.

    X theme uses WordPress search feature, but instead of separate template, it uses the same template as blog and archive pages.

    It doesn’t restrict what you should do with templates, it just narrows the use of templates to index.php, but you can still create your own search template as searchpage.php ( https://codex.wordpress.org/Creating_a_Search_Page ). Only that you need to follow the X’s template structure.

    Thanks!

  • <script> jQuery(function($){ $("#no-reply-1187794 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>