How do I make a wordpress theme full width?

后端 未结 5 889
萌比男神i
萌比男神i 2021-01-26 12:21

I tried my best but I couldn\'t make the following theme full width/screen by editing the CSS. I\'d be very much grateful if you could show me or give me a hint regarding this c

相关标签:
5条回答
  • 2021-01-26 12:54

    Replace the following styles and that will do it

    Style.css line 305

    .primary-navigation {
    display: block;
    float: left;
    width: 100%;
    text-align: left;
    }
    

    Style.css line 174

    #page, .container {
    max-width: 100%;
    min-width: 240px;
    }
    

    Responsive.css line 63

    .main-container {
    max-width: 100%;
    }
    
    0 讨论(0)
  • 2021-01-26 12:55

    Try to click on Appearance >> Customize >> Additional CSS.

    .container {
        width: 70%;
    }
    
    0 讨论(0)
  • 2021-01-26 13:00

    To accomplish something like this http://i.imgur.com/mekVyJg.jpg you will need to do the following changes in your css file:

    .main-container {width:100%;max-width:100%}
    #page, .container {width:100%}
    
    0 讨论(0)
  • 2021-01-26 13:11

    I was using GeneratePress theme and Elemetor page builder and had same problem on mobile-view. here, elementor-page is section where all content goes.

    I used this code:

    @media only screen and (max-width: 480px){
        .elementor-page{
        overflow-x:hidden;
    }}
    
    0 讨论(0)
  • 2021-01-26 13:16

    do the following change in responsive.css file

    .main-container {
        /** max-width: 96% replace this with bellow  */
        max-width: 100%;
    }
    

    remove these styles from style.css file

    .main-container{
        width: 1170px;
    }
    .container{
        max-width: 1170px;
    }
    .primary-navigation {
        max-width: 1170px;
    }
    

    Then your site will work full-width

    0 讨论(0)
提交回复
热议问题