Archived topic
How to REDUCE the padding in an after_entry_title block hook
2 replies · Started by Trish on December 18, 2022
Hi,
Am looking to reduce the padding around a block hook that I've installed, as shown here: https://www.awesomescreenshot.com/image/35450193?key=4e0ee90777b633818f388846fb507a87 so that ONLY the height of the text is really needed.
PLUS: I am wanting to change the Posted by and hours, depending on the post. Is this possible or will I need to create a unique block hook for EACH and EVERY post in order to do this?
Thank you in advance,
Trish
Hi Trish,
With GP Premium + GenerateBlocks, there's a way to do this dynamically. Here's an article on how to do it: https://docs.generatepress.com/article/block-element-post-meta-template/
To address the padding issue, it's best to use GenerateBlocks as well. There's a video in the article shared above showing how it's used.
Okay, thanks.