- This topic has 16 replies, 4 voices, and was last updated 2 years, 11 months ago by David.
-
AuthorPosts
-
April 27, 2021 at 11:14 am #1751297Alvaro
Hi,
I’m having a similar issue to this one on this site: 5livros.pt
Tom’s temporary solution does remove the horizontal scroll bar but there’s still some white space on the sides of the page content I’m not being able to find the culprit.
Any ideas?
Thanks.
Álvaro
April 27, 2021 at 12:35 pm #1751402LeoStaffCustomer SupportHi Alvaro,
Can you try disabling all plugins except GPP and GB to see if the issue is coming from one the other plugins?
Let me know 🙂
May 3, 2021 at 11:29 am #1762503AlvaroHi Leo,
Sorry for taking so long. It’s a live site, had to do it with a staging site.
Disabled all the plugins and had the same issue. It still happens in the pages that have full-width content, like this one https://staging.5livros.pt/ but not this one https://staging.5livros.pt/blog/.
Thanks.
May 3, 2021 at 11:43 am #1762516YingStaffCustomer SupportHi Alvaro,
It’s because you are adding
alignfull
to every GB container, it’s not a very good practice since the CSS WP wrote foralignfull
class always causes horizontal scroll problem.Please remove all the
alignfull
class from GB containers, GB container has its own option to go full width:
https://www.screencast.com/t/8n4DcbTOBWLet me know 🙂
May 3, 2021 at 1:33 pm #1762640AlvaroHi Ying,
I don’t think that’s it. In the live site I don’t have
alignfull
and the problem persists: https://5livros.pt/Thanks.
May 3, 2021 at 2:23 pm #1762674YingStaffCustomer SupportFor example:
https://www.screencast.com/t/Qg7a7pl2Could you remove them all first, then we can have a look if there’s anything else might have caused the issue?
May 3, 2021 at 11:27 pm #1763002AlvaroYou’re right, that came from a reusable block. Now I think I got it all, but there’re still some white space on the left and on the right, except for the footer, I think: https://5livros.pt/
Thanks.
May 4, 2021 at 3:49 am #1763374DavidStaffCustomer SupportHi there,
are i am seeing this CSS on your site:
.grid-container { margin-left: auto; margin-right: auto; max-width: 1200px; padding-left: 10px; padding-right:10px }
The padding properties aren’t part of the Themes styles so are coming from Custom CSS … i can’t see where it comes from whilst the cache plugin is enabled. If you want to disable that i can take a closer look.
May 4, 2021 at 5:53 am #1763523AlvaroHi David,
I believe is from the child theme. I’m going to take a look and get back with the findings.
Thanks.
May 4, 2021 at 6:31 am #1763595AlvaroHi David,
Yes, it was on the child theme. I used Addison Hall’s as a starting point and, as it seems, it’s not working as it should.
No white spaces on the side now: https://5livros.pt/
I wonder what that
.grid-container
CSS is doing. I’m sure I didn’t have this issue before. Don’t know what changed.Thanks.
May 4, 2021 at 6:47 am #1763620DavidStaffCustomer SupportThere should be no requirement for that CSS in the Child Theme. GP already applies the max-width and auto margins to grid-container dynamically. So the max-width in the themes styles will be set to match what you set in the Customizer.
May 4, 2021 at 6:53 am #1763916AlvaroI see. What could possibly have changed in the last weeks that made this CSS an issue?
I’m positive that I didn’t have this issue when the website went live, and the CSS was already there. Could it be some GP or Gutenberg-specific WP update?
Thanks.
May 4, 2021 at 7:00 am #1763934DavidStaffCustomer SupportThere hasn’t been any changes to the Theme ( or WP ) that would affect that. GP never adds a padding value to the grid-container so that Child Theme CSS would have to have been overridden by some other CSS.
May 4, 2021 at 7:09 am #1763953AlvaroTo be fair: the culprit CSS is not part of the original child-theme I linked above. I tracked the issue to an
unsemantic-grid.css
file I added to the child theme for some reason I can’t figure out right now.My first guess is that maybe some HTML used in an older GP site, before GP stopped including
unsemantic-grid.css
, was re-used here, and including theunsemantic-grid.css
file was a fast solution to a broken grid or something.May 4, 2021 at 7:14 am #1763963DavidStaffCustomer SupportYep – the old GP Theme relied on Unsemantic – which did require that padding value for offsetting the grid alignment. As your using the latest version of GP with the Structure set to Flexbox then you won’t need unsemantic unless for some reason you wanted its CSS to create rows.
-
AuthorPosts
- You must be logged in to reply to this topic.