Archived topic
Widget search in Generatepress
15 replies · Started by Jose Antonio on January 3, 2017
Hi!
I put a search widget in the sidebar of my Generatepress theme and I see that shows results that I don't want to appear (like testimonial texts, comments, etc.). How Can I establish that in the search results only appears some pages that I choose and all posts of the blog?
Thank you! Regards!
Hi there,
You might consider using a search plugin like: https://en-ca.wordpress.org/plugins/relevanssi/
I believe it allows you to restrict search to certain post types/taxonomies.
Let me know :)
Great! Is just that I was looking for! :D Thank you!
Only one question more, Can I include only 3 o 4 pages (and not all) with this plugin?
Thank you Tom! :)
Hmm I'm not sure - might be worth asking the developer, if it's not directly possible they might have an idea how to achieve it with the plugin.
Hello,
I use "Autocomplete For Relevanssi" for the widget "search" in the sidebar or in the footer no problem but on the header don't work, what's th problem ?
Thx
Hi there,
What doesn't work in the header? Like it doesn't display?
Are you able to provide a link to your site?
for the moment it's in local but i have a website for the test :
http://test2.thierryramirez.fr/page-d-exemple/
in the header “Autocomplete For Relevanssi” don't work, in the sidebar it's ok
Try this CSS:
.secondary-navigation .awesomplete ul {
font-size: inherit;
}
.secondary-navigation .awesomplete li {
float: none;
}
Great thank you Tom, and if i want display the search field in the header what is the css code ?
I try a lot of thing but don't work.
If it's a widget you should just be able to add it to the Header widget area with no issues?
i try with .inside-header, .widget-header, .site-header and other but no work
I'm not sure what you mean? How are you adding the search bar to the header?
simply in the header widget. I make test here : http://test2.thierryramirez.fr/
Try this:
.header-widget {
overflow: visible;
}
you are the best ;)