Archived topic
Title text alignment issues
8 replies · Started by Kumar on September 17, 2020
Hi there,
I have 2 questions.
1. In the attached image on the home page: https://www.parenthood.guide/
you can see that the title text is aligned left for the 'Latest blog posts' module. How can I align this text to center?
https://snipboard.io/sowA7F.jpg
2. This is also the case in the archive pages. (example: https://www.parenthood.guide/non-toxic-nursery/) In the customizer, there is option to change the alignment and padding for the featured image in the grid, but no option to change the alignment and padding for the title text in the grid. I'd like to remove the extra padding in the title text below and also align the text to center (instead of left).
https://snipboard.io/urvlEn.jpg
Thanks in advance,
Kumar
Hi there,
1. Try this CSS:
.wp-block-latest-posts {
text-align: center;
}
2. Sorry that link is showing page not found to me:
https://www.screencast.com/t/RZjjJ1IcaS
Can you confirm?
Thanks Leo.
2.) see this url
https://snipboard.io/urvlEn.jpg
Just visited the link again and looks like you've fixed it?
https://www.screencast.com/t/OelgoMg7WY
Thanks Leo.
sorry, just again on the 1st one - the CSS solved it for my homepage.
.wp-block-latest-posts {
text-align: center;
}
How do I replicate the same for my archive pages?
(Text title align center)
Use this CSS instead:
.wp-block-latest-posts,
h2.entry-title {
text-align: center;
}
Make sure to clear your caches.
this works, perfectly. Thanks David.
Glad we could be of help