Archived topic
blog posts index
8 replies · Started by Roy on February 6, 2018
I would like to format the title or home page where the blog posts are displayed. The page that displays the posts is formatted well, with paragraphs and the post title in bold, etc. However, the main page that displays the first few blog posts does not have any paragraph formatting at all.
Sorry if this is a repeat question, as I imagine this is a popular question...
Thanks for your help. I do not know CSS so if this is a CCS or other code issue please either provide the code or direct me to where I can find the code - thanks!
Using the GeneratePress Child theme
version: 0.1
Hi there,
The title can be formatted using Customizer > Typography > Headings > H2
As for the post excerpt, WordPress strips all HTML (styles) by default.
But you can format them with some CSS like this:
.entry-summary p {
font-size: 20px;
color: #000;
font-weight: 700;
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
Let me know if this helps :)
Thank you Leo!
I copied the CSS you provided above into the Customizer and was able to see the better results immediately and even change the values to make the posts look better. THANKS!
Another improvement would be to format the posts on the front page to reveal the paragraph structure from the posts page to the blog index page.
And not to display the categories on the front page.
Are these possible as well?
Thanks so much
If you want the format from the single posts to show on the blog page as well, then more tag is needed: https://docs.generatepress.com/article/using-the-more-tag/
You can hide the categories using the customizer options: https://docs.generatepress.com/article/blog-content-layout/
Thank you Leo.
I found the customizer options for the display of my blog to be very helpful.
One last thing: is it possible to format the posts on the blog index page to reveal the paragraph structure from the posts page?
Thanks again,
Roy
WordPress strips all HTML from excerpt by default.
You would need to use the more tag to keep the style you have in the actual post: https://docs.generatepress.com/article/using-the-more-tag/
Got it!!! Finally.
Thanks so much.
No problem :)