Archived topic
Show preview text searching for sites
3 replies · Started by Karsten on June 14, 2021
Dear Support,
if a visitor searches on our website, sites (no text, just h1, date, creator & pic) and article (+ text) have a different preview. We would like to have a text shown in the site preview [1], so we can inform visitors about our products, so they view the product site.
Alternatively, we would like to rescale the preview pic of this site [2] (as it's a product pic), so they don't need a text to decide. The pic is currently right-sided and does not look that great (see https://www.kagels-trading.de/?s=dax+future+daytrading+signale).
Where do we find the configuration for this feature?
Thanks & Cheers
Hi Karsten,
I'm not sure I fully understand your question, are you trying to customize the search result page?
If so, you can try using block element- content template, and assign it to search results.
https://docs.generatepress.com/article/block-element-content-template/
Let me know if this helps :)
Hi Ying,
thank you for your response.
The preview of pages does only show the page image but no text as you see here here:
https://www.kagels-trading.de/?s=dax+future+daytrading+signale
Is it possible to show also description in this search results?
Thank you
Karsten
Hi there,
the Excerpt ( summary ) is only displayed if WordPress can parse the content and generate an excerpt.
But WordPress will not parse content that is nested inside another Block - whether that be a GB Container Block, a core Group Block or any other plugin.
To get around that you would need to create a Manual Excerpt for those posts / pages.
To add the manual excerpt field to a Page you can add this PHP Snippet to your site:
add_post_type_support( 'page', 'excerpt' );