configure search.php in BeTheme

Hi,
I have a search box on my homepage that has the option of selecting category.



When a category is selected, "Air Canada" for example but the search box is left blank, a search results page is displayed with correct formatting and preview images shown for all posts. I really like how this looks.

example result:




However, as soon as a search term is added in the search box, the following issues arise: 
  • the search results page is missing the blog sidebar
  • the formatting adds text on top of my menu bar
  • preview images are no longer shown
For example, when selecting category "Air Canada" and entering "London" into the search box


I understand that there is a file called search.php which needs to be edited but I can't see how to bring its formatting in line with my ideal search results page. e.g) https://theluxurytraveller.com/category/aircanada/

can you please explain how I can do this?

Thanks!

Comments

  • Hey,
    yes you are correct. This is the search.php file. We do not change anything in the search page so this is how a default WordPress search page looks like. We cannot really change anything right now about that, this requires file customization and custom coding which we do not support. I will let know the dev team about this, maybe something could be done it make it look better.
    thanks
  • Thanks for the update Bryan.

    So presumably this category results page isn't a default wordpress page and comes from BeTheme?


    I certainly didn't code it myself but would appreciate any tips on getting search.php to match it!


  • The category page is the same functionality as the default wordpress - it inherits the options from the main blog page template (as every Wordpress template do) to not to mix layouts.
    Thanks

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.