- This topic has 21 replies, 2 voices, and was last updated 3 years, 4 months ago by Tom.
May 3, 2018 at 7:32 am #566463stlayman
Hi there. I’m using custom headers on my site. I added the search bar as a widget on my blog pages. But when I run a search, the results are showing the contents of my custom header (navigation, etc…) as the “search entry” summary for all results. Is there a way to block custom header content for search results and use the normal snippets?GeneratePress 2.1May 9, 2018 at 1:34 pm #571794stlayman
Anybody? maybe this is not possible? thanksMay 9, 2018 at 3:58 pm #571860TomLead DeveloperLead Developer
So sorry that your topic was missed! Always feel free to poke us if you don’t receive an answer within 24 hours.
That is very strange. Have you checked with Beaver Builder? It looks like it’s all being treated as content. I wonder if they have a way to exclude a specific module from being included as “content”.May 9, 2018 at 8:25 pm #571984stlayman
I’m using BB custom row shortcode in the GP custom header wrap. Guess I’ll try explaining that to them and see if I get anywhere. ThanksMay 9, 2018 at 9:02 pm #572017TomLead DeveloperLead DeveloperMay 9, 2018 at 9:04 pm #572018stlayman
I surely will report back 🙂May 10, 2018 at 8:28 am #572489stlayman
Hi Tom, here’s what they said: 🙁
“You can create Manual Excerpts for each Post, or you’ll have to replace the header with one that comes from the theme.”May 10, 2018 at 9:07 am #572524stlayman
More: (I’m using the global location setting for my page header “Search Results”)
“If they are inserted on the header, they will be treated as such. But on the single Posts on your site, they’re not inserted to the header. They’re inserted as part of the content instead. Check the screenshot attached for reference. Notice how the highlighted row, which is your header, is inside the entry-content class. :)”May 10, 2018 at 10:13 am #572593TomLead DeveloperLead Developer
Ah yes, the Beaver Builder area is actually inside your content area on single posts.
Have you considered using the same method you used for your search results? Adding the BB section into a Page Header, and applying it to single posts?May 10, 2018 at 10:31 am #572617stlayman
Hi Tom, I’ve selected my custom header for Post Types > Single posts in global locations, is that what you mean?May 10, 2018 at 10:35 am #572630stlayman
… the same is happening for pages using the custom header during search https://www.whww.com/?s=cultureMay 10, 2018 at 10:44 am #572639stlayman
I am disabling the regular header on all pages inside the editor, is there a better way to show only the custom headers, while keeping the header container?May 10, 2018 at 10:48 am #572642stlayman
Please disregard posts. Actually I noticed it’s only happening on PAGES search results.May 10, 2018 at 10:57 am #572644stlayman
I re-enabled the header for this page and cleared the BB cache… and the search results are still showing the navigation. https://www.whww.com/?s=cultureMay 10, 2018 at 12:59 pm #572719stlayman
So, for now I’m just hiding the excerpts and featured images for pages only. Searching posts will still show the excerpts correctly. I’ve asked BB if there is a way to exclude a node from the search results query.
.search .page .entry-summary,
.search .page .post-image
- You must be logged in to reply to this topic.