Archived topic
Element padding (content padding applied twice)
2 replies · Started by Alexander on May 13, 2021
Hi!
I've just replaced the post navigation with a new Block element (been putting it off for the longest time since I have custom post types too) and I can't believe how easy that is now, thanks to your templates and the Block element. Kudos, that is really nicely done!
However... (you knew this was coming, right?)
It seems that the "content padding" is, for lack of better words, applied twice? I've tried all possible combinations of full width and contained width and I seem to be unable to get rid of the 40px left and right padding in the post navigation. When I "inspect" that it shows it as inline CSS.
Here's an example: https://www.alex-kunz.com/color-paul-gauguin/
When I set content-padding to 0px for left and right in the Customizer, it goes away and then the post-nav doesn't have that "duplicate" padding.
I hope this all makes sense. Any help on how I fix this is greatly appreciated.
Thanks!
Alex.
I think I figured it out. I didn't like the placement "after-content-container" and switched it to "after-content". Once I reverse that, the padding isn't applied twice. Guess I'll have to switch some other stuff there at the bottom to Block elements now. 😜
Glad to hear.
Let us know if you need another look :)