Site logo

[Resolved] Search Results has Title and Excperpt in some tag

Home Forums Support [Resolved] Search Results has Title and Excperpt in some tag

Home Forums Support Search Results has Title and Excperpt in some tag

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1964278
    Scott Pringle

    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

    #1964304
    David
    Staff
    Customer Support

    Hi there,

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

    #1964762
    Scott Pringle

    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.

    #1964775
    Ying
    Staff
    Customer Support

    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?

    #1964782
    Scott Pringle

    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.

    #1964838
    David
    Staff
    Customer Support

    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.

    #1964908
    Scott Pringle

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

    #1965166
    David
    Staff
    Customer Support

    You’re welcome

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.