Replies: 2 comments 1 reply
-
The Default UI doesn't currently have a way to modify these result templates — and I'm unlikely to change it out in case other people are relying on styling the current structure 😅 You could possibly see whether the Modular UI in its current state would work for you? That allows you to specify templates for each result. |
Beta Was this translation helpful? Give feedback.
-
Hey @bglw, I got around to it and had the exact results I was wishing for. Specifically, the I noticed something strange, the <p>${title}</p>
<p>${excerpt}</p> From: ## Heading Title
Paragraph text. You would get: <p>Heading Title</p>
<p>Heading Title. Paragraph text.</p> Is this intended? I got around it by using: const title = subResult.title;
const re = new RegExp(String.raw`${title}.?\s?`);
const excerpt = subResult.excerpt.replace(re, ""); |
Beta Was this translation helpful? Give feedback.
-
I want to apply styling to the first result of each post, and the elements look like this:
Is it possible to nest/group the first title and excerpt under a div? I want to achieve some styling but this is really getting in the way.
Beta Was this translation helpful? Give feedback.
All reactions