• Latest version 4.1.3 broke my site on mobile:
    1. Header was not fixed and symmetrical when scrolling (moved a bit upwards and sideways).
    2. Footer was all messed up.
    3. Other layout problems, mainly content not fixed and not symmetrical horizontally.

    I have reverted back to 4.1.2 and everything is ok again.
    For some reason Rollback did not work (got error during validating files), so I had to restore from my last backup (which luckily was 2 days ago).

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter avifb

    (@avifb)

    OK, with the help of claude.ai I added the following custom CSS code to keep the content fixed and properly aligned in mobile view:

    @media (max-width: 768px) { .blog .container, .archive .container, .search-results .container, .category .container, .tag .container { overflow-x: hidden; } }

    Hello @avifb,

    Thank you for reaching out,

    The issue is related to this section: https://ibb.co/WNcrc4dq. ​The space comes from the left and right negative margin or too much width. You should remove the extra negative margin to fix this. Also, you can use this CSS, so please put the CSS below in Customizing > Custom CSS/JS > CSS Code:

    @media(max-width:768px) {
        body {
            overflow-x: hidden;
        }
    }

    For more information about the CSS code on the customizer, please read this link: https://docs.oceanwp.org/article/354-add-custom-css-and-js-to-your-website

    Note: if you have any cache plugin or server cache(CDN / Browser Cache and Cookies and …), you need to clear its cache contents or disable them to see your changes. Also, don’t forget to click on the regenerate all assets file and data in Elementor > Tools.

    I hope it helps,
    Best Regards

    Thread Starter avifb

    (@avifb)

    Thank you. It worked as well as the Claude solution.
    I guess body {} includes all these:
    .blog .container, .archive .container, .search-results .container, .category .container, .tag .container

    Hello @avifb,

    Thank you for reaching out,

    Just to clarify, your CSS targets specific containers, so it only affects content inside them. My CSS applies to the entire body, which also covers elements outside the containers, such as advertising scripts, preventing horizontal overflow completely. Both approaches work, mine simply ensures a global solution. You can use either one depending on your preference.

    Best Regards

    Thread Starter avifb

    (@avifb)

    Got it! Thanks mate!

    You’re very welcome.

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.