Archived topic
Hiding headlines in auto-generated blog posts excerpts and site title line-break
5 replies · Started by Roi on May 3, 2022
Hello,
I'm using GP & Slideout, and there're 2 things I'd like to change/fix:
1 - I want to hide titles from blog post excerpts.
2 - The site title breaks into 2 lines because the text is too long - I'd like to display it in a single line.
Thank you.
Hi there,
1. Thats a tricky one - apart from using a custom excerpt - you can try following this reply:
https://generatepress.com/forums/topic/remove-subheadings-h2-from-excerpts/#post-1367615
2. In Customizer > Additional CSS - look for this:
#site-navigation .navigation-branding {
transform: rotate(90deg);
display: block;
height: 100%;
margin: 30px 0 auto;
}
And replace it with this:
@media(min-width: 769px) {
#site-navigation .navigation-branding {
margin: 10px 0 auto;
}
.main-title {
writing-mode: vertical-lr;
}
}
Thank you for your prompt reply.
Site title is now solved.
As for the excerpts, I tried as a workaround the custom excerpt which solved the title-in-excerpt issue, but the Read More button was gone.
I think that resolving the missing Read More button will be easier than employing RegEx to extract titles from the excerpt...
Is there an easy way to get the Read More button back?
See here for displaying Read More with custom excerpt:
https://docs.generatepress.com/article/activating-read-custom-excerpt/
Thank you for the help, and thank you for the super-fast responses.
Was prepared for a back and forth, fixed the problem in a few hours.
Really, top notch.
Awesome - glad to be of help!