Site logo

Archived topic

Search Results has Title and Excperpt in some tag

7 replies · Started by Scott Pringle on October 15, 2021

Viewing posts 1–8 of 8

Trying to customize and style the WordPress search results page, but having trouble because it appears that the title is in line with the excerpt and both wrapped by a <p> tag.

How can I get the Post and/or Page title to display as a stylable element in the WordPress search results page?

I do want posts and pages to be mixed in the search results.

PS: I can alert the layout via the customizer (layout->blog->archive). I can also alter the layout using the layout element. But there is not toggle for how to handle the post/page title.

Thank you,
Scott

Hi there,

are you using a Layout Element or function to disable the content Title on the site ?

You were spot on. I realized that I have a snippet in function PHP to globally remove the content title. This was before I learned of the layout element.

Thank You!

But the expert still lists the content title at the beginning of the excerpt which seems odd and redundant.

Hi Scott,

Not sure what you are trying to achieve? Are you wanting to remove the H1 or the H2 title?

Or are you trying to style the H1 or H2 title?

If you view the current search results page link that I sent you will see the first words in the post/page content is the same as the content. That makes the search results read a little funny. Other than that I think I will be all set.

I think the issue is to how the post is constructed in Beaver Builder, as the Title is part of the Content.
Ideally you need to remove the title from the content, and keep the default entry-header title.

OK, I will fiddle around with it. Thank you.

You're welcome

This archived topic is closed to new replies.