Home › Forums › WoodMart support forum › padding issue
padding issue
- This topic has 13 replies, 2 voices, and was last updated 2 years, 9 months ago by Aizaz Imtiaz Awan.
-
AuthorPosts
-
January 22, 2022 at 9:07 am #347120
Csaba9923ParticipantHey Guys!
I had the same issue like others: 40px padding in the top / bottom of the page, so I added some CSS to the website
The code:
.whb-header{
margin-bottom:0;
padding-bottom:0
}.wd-prefooter{
padding-bottom:0
}Now the problem is that, sometimes there is still the 40 px gap, so I added also this to the code:
.main-page-wrapper{
padding-top:0
}After I added it, the 40px gaps disappeared, BUT sometimes there is a -40px padding on some of the pages…
How could I fix it?
January 22, 2022 at 10:51 am #347130
Aizaz Imtiaz AwanKeymasterHello,
Sorry but I have not been able to see the issue on your website. Please provide a relevant screenshot to check it myself and help you out accordingly.
Best Regards
January 23, 2022 at 9:59 am #347243January 24, 2022 at 7:16 am #347368
Aizaz Imtiaz AwanKeymasterHello,
The
margin-top: -40px
add in the CSS to adjust the height of the header. If you want to remove it then please use the below custom CSS code and paste it to Theme Settings >> Custom CSS >> Global CSS section:.main-page-wrapper { margin-top: 0px; }
Best Regards.
January 25, 2022 at 4:47 pm #347862
Csaba9923ParticipantDear Aizaz!
As I said:
“Now the problem is that, sometimes there is still the 40 px gap, so I added also this to the code:.main-page-wrapper{
padding-top:0
}After I added it, the 40px gaps disappeared, BUT sometimes there is a -40px padding on some of the pages…”
I attach an examle of this -40 padding.
As you can see, the system “cut” 40px of my hero section…
Attachments:
You must be logged in to view attached files.January 26, 2022 at 8:56 am #347985
Aizaz Imtiaz AwanKeymasterHello,
Please provide the URL of the page where the padding appears to check it myself and help you out accordingly.
Best Regards
January 26, 2022 at 3:45 pm #348120
Csaba9923ParticipantI attached 2 examples.
Sometimes there isn’t -40px padding, sometimes there…
Sometimes you can see it from “normal” browsing mode, sometimes just from incognito mode.
January 27, 2022 at 6:35 am #348215
Aizaz Imtiaz AwanKeymasterHello,
I am unable to see the padding issues as you mentioned in any of the pages you sent.
Could you please provide a video explaining the issue to check it myself and help you out accordingly.
Best Regards
January 27, 2022 at 8:30 am #348252
Csaba9923ParticipantI attach a google drive link, where you can see a screencast video about the issue
January 27, 2022 at 10:59 am #348315
Aizaz Imtiaz AwanKeymasterHello,
Please replace the previous CSS I provided with the following then check back.
.home .main-page-wrapper{ padding-top:0 }
Then it will only affect the homepage.
Best Regards
January 27, 2022 at 11:07 am #348324
Csaba9923ParticipantOkay, but the issue is on the product pages too (as you can see it in the video)
January 27, 2022 at 12:06 pm #348355
Aizaz Imtiaz AwanKeymasterHello,
When you remove the previous CSS then the new CSS will only affect the homepage not the single product page.
Best Regards
January 28, 2022 at 6:17 am #348531
Csaba9923ParticipantOkay, but as you can see in the screencast video, the bug effect the product pages too!!!
January 28, 2022 at 10:59 am #348616
Aizaz Imtiaz AwanKeymasterHello,
Please try adding the following Custom CSS in the Global Custom CSS area under Theme Settings >> Custom CSS.
.single-product .main-page-wrapper{ padding-top:40px; }
This will add space only to the single product page.
Best Regards
-
AuthorPosts
Tagged: padding
- You must be logged in to create new topics. Login / Register