Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Avada Theme Causing Issue with Bootstrap Breakpoints

I'm using Avada 5.0.6 and it seems that the break point that is destroying my bootstrap grid. The mobile responsiveness break point is 800 pixels wide. However, according to the bootstrap documentation col-sm-* starts at 768 pixels. So my grid should still work when I emulate a screen 800px wide. But it doesn't, it puts the two divs on top of each other (picture at the bottom).

My HTML:

  <div class="col-xs-12 col-sm-3 col-md-3 phonenumbers">
    <h2>Phone numbers:</h2>
    <p>555-555-555</p>
    <p>555-555-555</p>
    </div>
    <div class="col-xs-12 col-sm-3 col-md-3 email">
    <h2>Email:</h2>
    <p>[email protected]</p>
    <p>[email protected]</p>
    </div>
    <br>
    <div class="col-xs-12 col-md-12">
    <h1>Connect with Us!</h1>
    <p></p>
    [contact-form-7 id="23" title="Contact Us Form"]
    </div>

My CSS:

.phonenumbers {
    margin-left: 35%;

}
.email {
    margin-left: 10%;
}

    @media (max-width: 800px) {
      .phonenumbers {
        margin-left: 0;
      }
      .email {
        margin-left: 0;
      }
    }

The desktop look:

enter image description here

The mobile look:

enter image description here

like image 973
Thomas Hutton Avatar asked Feb 26 '17 18:02

Thomas Hutton


2 Answers

In Avada, you can adjust everything, including breakpoints. It's default is not matched with Bootstrap's 768px, it is 800px. You can easily change it:

  1. In WP Admin Sidebar select Avada
  2. Select Theme Options
  3. In Fusioon Avada 5.0.6 left-side menu select Responsive
  4. Adjust Header Responsive Breakpoint and/or Site Content Responsive Breakpoint with range selects to your needs.

enter image description here

like image 118
wscourge Avatar answered Oct 24 '22 08:10

wscourge


Try this

<div class="col-xs-3 col-sm-3 col-md-3 phonenumbers">
    <h2>Phone numbers:</h2>
    <p>555-555-555</p>
    <p>555-555-555</p>
    </div>
    <div class="col-xs-3 col-sm-3 col-md-3 email">
    <h2>Email:</h2>
    <p>[email protected]</p>
    <p>[email protected]</p>
    </div>
    <br>
    <div class="col-xs-12 col-md-12">
    <h1>Connect with Us!</h1>
    <p></p>
    [contact-form-7 id="23" title="Contact Us Form"]
    </div>

Live JsFiddle https://jsfiddle.net/grinmax_/uqpdb6sL/

like image 1
grinmax Avatar answered Oct 24 '22 06:10

grinmax