- This topic has 21 replies, 2 voices, and was last updated 5 years, 11 months ago by Tom.
-
AuthorPosts
-
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?
May 9, 2018 at 1:34 pm #571794stlaymanAnybody? maybe this is not possible? thanks
May 9, 2018 at 3:58 pm #571860TomLead DeveloperLead DeveloperHi Stacy,
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 #571984stlaymanI’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. Thanks
May 9, 2018 at 9:02 pm #572017TomLead DeveloperLead DeveloperLet me know if they don’t have any ideas. They might have a way to exclude certain rows from excerpts.
May 9, 2018 at 9:04 pm #572018stlaymanI surely will report back ๐
May 10, 2018 at 8:28 am #572489stlaymanHi 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 #572524stlaymanMore: (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 DeveloperAh 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 #572617stlaymanHi 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=culture
May 10, 2018 at 10:44 am #572639stlaymanI 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 #572642stlaymanPlease disregard posts. Actually I noticed it’s only happening on PAGES search results.
May 10, 2018 at 10:57 am #572644stlaymanI 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=culture
May 10, 2018 at 12:59 pm #572719stlaymanSo, 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
{
display: none;
} -
AuthorPosts
- You must be logged in to reply to this topic.