Home > Enterprise >  Wordpress weird padding at the bottom of posts
Wordpress weird padding at the bottom of posts

Time:09-24

I'm having issues with an empty container at the end of my WordPress posts body. I know what cause the problem and I tried to fix it but it somehow affects footer bottom padding too.

Here is the link:
enter image description here

and when I change it to this:

.main-container .row-container .double-bottom-padding {
    padding-bottom: 0px;
}

It fixes the problem but removes the bottom padding of the footer too.

Here's how:

enter image description here

How can I fix this issue?

CodePudding user response:

Hessam

It looks like your issue is this class

".double-bottom-padding" included in your declaration:

.main-container .row-container .double-bottom-padding { padding-bottom: 72px; }

This class adds padding for the footer. If you'd like to remove the padding from ".main-container" but not ".double-bottom-padding", either remove ".main-container" from the above declaration or write an additional statement in your css

.double-bottom-padding { padding-bottom:72px }
  • Related