Tagged: CSS, mobile padding
-
AuthorPosts
-
August 11, 2023 at 1:59 pm #1416075
Hi.
For some reason, a stock slice of code, noted below, is not being called on a particular site (latest version of Enfold installed, and all cache cleared / manual checks committed and so forth).
Is it possible someone has had this before, or perhaps a mod. could chime in?
Essentially, I’ve added this as an addition, but it would be nice to know why it fell off in the first place:
@media only screen and (max-width: 767px)
.responsive #top #wrap_all .container {
width: 85%;
max-width: 85%;
margin: 0 auto;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: auto;
padding-left: 0;
padding-right: 0;
float: none;
}August 12, 2023 at 11:24 pm #1416136August 14, 2023 at 10:57 am #1416230Hi Mike,
if you remove my snippet in the link I provided (and be my guest to temporarily do so), you’ll find that it no longer renders – that is the issue / query.I added the code from a working site as an additional snippet as the original site wasn’t rendering.
August 14, 2023 at 11:43 am #1416236Hi,
Where on the frontend do you see the issue, which page and elements?
Perhaps a screenshot would help.Best regards,
MikeAugust 14, 2023 at 11:47 am #1416239You could take any page – it’s the header and general padding missing on mobile portrait view, i.e. as/per the snippet, anything below: @media only screen and (max-width: 767px)
Couple of screenshots below, with and without the code snippet override:
https://joefraser.co.uk/wp-content/uploads/2023/08/with-code-snippet.png
https://joefraser.co.uk/wp-content/uploads/2023/08/without.png
- This reply was modified 1 year, 4 months ago by James Bowtine.
August 14, 2023 at 11:55 am #1416243August 14, 2023 at 11:57 am #1416244Excellent.
I’m pleased there was a reason, even if it was down to me.
Thank you
August 14, 2023 at 12:05 pm #1416245Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘Mobile Padding Lost – manual override … but why? …’ is closed to new replies.