Forums › Forums › Search & Filter Pro › Can you override the query PHP template?
Tagged: custom php
- This topic has 7 replies, 2 voices, and was last updated 4 years, 1 month ago by Trevor.
-
Anonymous(Private) October 2, 2020 at 6:40 pm #261788
Is there a way to override the query PHP template like there is for showing customized results? Overriding the results with <form ID>.php in my child theme worked out perfectly and looks great, and now I’m trying to to see if something similar can be done with the query without having to write a lot of PHP code from scratch or a lot of CSS to completely change the current HTML layout.
I imagine it can be done all in custom PHP, but starting from scratch is a little daunting as PHP in WordPress is still pretty new to me.
Trevor(Private) October 5, 2020 at 3:07 pm #261896Ah, I see. You want either to change the HTML, add to the HTML, or change the appearance (CSS)?
Changing the HTML could break the form. Add to the HTML, using JavaScript, might work, but again it might break the form. The form has only basic CSS, so that can be added.
Anonymous(Private) October 5, 2020 at 3:15 pm #261901Yeah, CSS is what I’m doing right now, but UI functionality like grouping categories, showing what category is selected and having specific categories show by themselves in another location are making CSS a little messy. I wasn’t sure about adjusting HTML and if it would break any of the S&F event handlers, but I’ll try that since that sounds more elegant than what I’m doing now. Thanks!
Anonymous(Private) October 5, 2020 at 10:10 pm #261971Thanks for your help Trevor, I ended up creating a separate filter UI in Elementor with matching category names and with Javascript had clicks on those Elementor text fields relay a JQuery click onto the filter UI category radio buttons. Being able to use Elementor to put the Filter UI together sped things up quite a bit.
-
AuthorPosts