[Resolved] Fixed minimum width of the site

Home Forums Support [Resolved] Fixed minimum width of the site

Home Forums Support Fixed minimum width of the site

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #39969
    xepace

    Hello! Could you tell me how can I set fixed minimum width for the whole site? Thanks.

    #40016
    Manny

    In your (child theme) styles.css file add:

    body .grid-container {
        max-width: 1100px;
        min-width: 320px; /*change this value to the width you want*/
    }
    #40017
    Manny

    Whoops,

    Remove the line: max-width: 1100px;

    Otherwise you won’t be able to adjust it via the options menu within the backend as it will always go to 1100 for max width. πŸ˜‰ my bad.

    #40025
    Tom
    Lead Developer
    Lead Developer

    Thanks Manny!

    That code should work (minus the max-width).

    #40119
    xepace

    Hi! Thanks for the help! I’m trying to set the minimum width of 740 pixels for the whole site using a custom css. Your code will only work for part of the site with articles. I would also like to fix the position of the left sidebar, footer and menu. And if possible I want to disable toggle in the menu (the button with three stripes and the word menu).

    #40255
    Tom
    Lead Developer
    Lead Developer

    Hi Pavel,

    Maybe this plugin will help: https://wordpress.org/plugins/generate-disable-mobile/

    Save the .zip, and upload it to “Plugins > Add New > Upload”.

    That will disable all mobile functionality.

    Let me know πŸ™‚

    #40339
    xepace

    Yes it worked. Thank you Tom! But now the right side of the body appeared unnecessary space (padding) and the site scrolls to the right. I can’t understand where it comes from and how to fix it. Site – http://www.mylisbon.ru

    #40482
    xepace

    On single pages there is now free space on the right. So on the home page…

    #40483
    xepace

    I resolve this by placing sidebar on the right. So even better πŸ™‚

    #40500
    Tom
    Lead Developer
    Lead Developer

    Glad you figured it out! πŸ™‚

    #109788
    Tom
    Lead Developer
    Lead Developer

    Just a note that the Generate Disable Mobile plugin should be replaced with this one moving forward: https://wordpress.org/plugins/generate-disable-mobile/

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.