This topic has 13 replies, 2 voices, and was last updated 6 years, 10 months ago ago by Rose Tyler
Hello, I’ve some questions about the SEARCH function included in the theme.
1. In “Theme Options / Header Settings” I have enabled “Enable search form in header”. But in “Search post type” I can choose only products or posts. I would like a search on the entire site, so can I choose: product, posts and pages? Or at least post and pages (the woocommerce part is not yet used).
2. How could I edit the page with the results? Can I set my own custom page for example without sidebar and page heading?
3. The search button now is in English. Other descriptions too. Can I change them without WPML? The website of my client has only one language and it is not English in this case.
4. I’m using the header type no. 11, I would like to insert another link (with social icons) close to the search button, how could I do it? What file I need to modify?
Hello,
1. Unfortunately, there is no such option and this is requested additional customization. Sorry, but customizations are not covered under our Support Policy.
If you need help with additional customization contact WP-Kraken team.
2. There are no options to edit this page via admin panel, but you may use custom css code, for example,
.search.search-results .sidebar {
display: none;
}
.search.search-results .content {
left: 0;
width: 100%;
}
3. Use Loco Translate plugin https://www.8theme.com/documentation/xstore/theme-translation/base-theme-translation/ (the same for woopress theme).
4. If you want to edit header type 11 you can customize the wp-content/themes/woopress/headers/header-structure-4.php file. Make changes using a child theme https://codex.wordpress.org/Child_Themes to prevent losing it after theme updated.
Regards
Thanks for the answers.
Regarding the point 1, maybe in the next update of the theme, you could consider inserting this function. I think that other people too could find very helpful to search in “posts” and at the same time in “pages” too. Please consider it.
Regards
By the way, point 2 doesn’t work (I insert the code in the child, as you can see in pvt)
Hello,
1. I will pass your request to our developers, but I can’t give any guarantee.
2. Please change the previous code, to:
.search.search-results .sidebar, .search.search-no-results .sidebar {
display: none;
}
.search.search-results .content, .search.search-no-results .content{
left: 0;
width: 100%;
}
Regards
Thanks for the reply.
Now sidebar is finally not present, but the page heading is still present.
Ok. Please provide me a screenshot for better understanding which text do you want to remove.
Thanks in advance.
Regards
I would like to remove all this block with the page heading (see the link in pvt content), like when I select “Disable” in “Page heading” in the options of the page
In this case, please use this code also –
.search.search-results .page-heading, .search.search-no-results .page-heading {
display: none;
}
Regards
Perfect, thank you very much!!!
Regards
You’re welcome!
Have a nice day.
Regards
Hello,
I’ve just discovered that in the Widget section there is a widget called “8theme – Search Form” that permits to search in all things (posts, pages, portofolios, products, etc.) at the same time.
I’ve only one question, why if I search with none text I’ve all pages as result? It seems a bug.
Moreover the last two results are “Footer” and “Footer-jewellery”, even if these two pages are not present in any place. How can I remove these two pages from the results?
Hello,
This is not a bug with an empty search field, it is default functionality of WordPress. You may activate a default theme and check work of default search widget.
“Footer” and “Footer-jewellery” are static blocks. To hide static blocks from search results, please use this code:
.search-results .staticblocks {
display: none;
}
Regards
You must be logged in to reply to this topic.Log in/Sign up