Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1039504
    Aitchess
    Participant

    Hi

    Mycorfu.eu is a one page site. I would like the site to display full width on mobiles but boxed on larger screens. Please can you advise how I can do that? I am using a child theme (in case that matters).

    Thank you for your help.
    Regards
    Helen

    #1039637
    Thai
    Moderator

    Hi Helen,

    Please add the following CSS under Customizer > Custom > Global CSS:

    @media (max-width: 480px){
        .x-container.max.width {
            max-width: 100%;
            width: 100%;
        }
    }

    Hope it helps 🙂

    #1039960
    Aitchess
    Participant

    Hi

    The above code didn’t seem to do anything. The ‘site layout’setting was set to’fullwidth’ and I added the above code but nothing happened.

    I have I have now changed my settings so that the default is now ‘boxed’

    Site Layout: Boxed
    Site Max Width (px) 1024
    Site Width (%) 90
    Content Layout Fullwidth

    Please advise the code that I should now use so that the site layout is fullwidth for smaller screens.

    Thank you for your help
    Helen

    #1040132
    Nabeel A
    Moderator

    Hi again,

    Please replace the previous code with this one:

    @media screen and (max-width: 979px){
    .site, .x-navbar.x-navbar-fixed-top.x-container.max.width {
        width: 100% !important;
    }
    }

    Let us know how this goes!

    #1041020
    Aitchess
    Participant

    Marvellous. Thank you.
    Helen

    #1041362
    Joao
    Moderator

    Great to hear it.

    Let us know if you need help with anything else.

    Joao

  • <script> jQuery(function($){ $("#no-reply-1039504 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>