Page excerpt includes things i don't want

Hi Themeco. Love the product, but I am running into a problem. The search page includes an excerpt of the page shown. However, this includes also content I don’t want to show again. For example, it shows the title for the second time and it also slows meta data i am showing on top of the page. Is there any way to hide these items in the excerpt?

The title of the page, whereby the blue header and grey boxes need to be hidden from the excerpt.

The excerpt itself, whereby almost the whole first sentence needs to be hidden.

It would be great if this could be hidden. Thanks in advance!

Hi Tim,

Thanks for reaching out.
It seems that the first screenshot is showing the Post Details page whereas the second screenshot is showing the Search Result page. Search Result page shows the excerpt of length mentioned at Theme Options > Blog > Excerpt Length. Please make the excerpt length 0, if you want to remove the excerpt from all the archive pages.

If you want it to be removed from the Search Result page only, you need to add the following custom CSS code into the Theme Options > CSS.

.search-results .entry-content.excerpt
{
    display: none;
}

Please remember that the above code will work if copied as it is and don’t conflict with any existing style.
Please note that the code provided serves only as a guide to help you get started custom coding on your own if there’s no option offered in our theme or the products we bundle.
We really do not provide support for custom codes that means we can’t fix it in case it conflicts with something on your site nor will we enhance it.

Thanks

Thank you for the reply. However, this is not the solution I had in mind.

It is true that the first screenshot is the post/page itself and the second is the search result page. I do not want to hide/remove the excerpt, I still want to show that. However, I would like to hide the title and meta data showing up in the excerpt, is that also possible?

Hello Tim,

The excerpts are taken from the first 55 words of the post/page. If you are using the Blank - No Container page template on the page and have inserted your own title headline, this will display in the search results page which results in a duplicate title text. It would be best that you use manual excerpts instead. Manual Excerpts are optional hand-crafted summaries of your content that can be used in your theme. Learn more about manual excerpts.

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.