Archived topic
Related Post Support
6 replies · Started by Praveen on December 7, 2020
Hi guys,
I have used the tips given here for related posts. But I need some help in 2 aspects -
1) My words Related Post is not center aligned
2) Also the grey box is also limited (i guess by the container of the post) - is there a way to make it end to end?
This is what i used - https://gpsites.co/merch/the-single-post/
Hi there,
1. Try this CSS:
.single-post .wpsp-related-posts h3 {
text-align: center;
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
2. Are you currently adding it using a hook element? If so try the generate_before_footer hook instead.
Thanks, I am indeed using "generate_before_footer" hook. But as you can see, the great box is limited to the container set for the post.
I just had another look and unfortunately there isn't a good way to make just that section full width is you need to position it above comment.
To achieve that, you'd basically need to set the content container width to full, then rebuild the section above using the Container blocks from GenerateBlocks to make the content above contained.
ah, that will be too much of trouble! Thanks anyways
No problem :)