• Resolved robbieobbie

    (@robbieobbie)


    URL: https://auroracap.net

    *I should first state that the site works great in firefox if you would like to see it working properly.

    When clicking on the menu button in the top left in webkit browsers to open sidr and reveal the menu, sidr sometimes opens properly, while other times appears completely empty looking like a plain white box. If it does open properly, clicking on a link will turn sidr completely white.

    Even stranger, once the error occurs, if the menu button is clicked to close sidr, and then is reopened, there are no issues.

    It only seems to break once and then work from there on out.

    Using Underscores, Sidr, LeanModal and mb.YTPlayer for the BG video.

    I am assuming this is some sort of java/jquery conflict, which I would love to learn more about, so any ideas or suggestions to point me in the right direction would be GREATLY appreciated as I have been working on this for many hours now with no solutions.

Viewing 1 replies (of 1 total)
  • I had the same problem but figured out a solution. Instead of letting sidr push the body, you can wrap a div around all of your content and allow sidr to push that instead.

    In the below example add your div where it says “NAME OF YOUR DIV”

    <script>
    $(document).ready(function() {
      $('#demo').sidr(
          name: 'sidr', // Name for the sidr. Default: 'sidr'
          speed: 200, // How long the animation will run. Default: 200
          side: 'left', // Left or right, the location for the sidebar. Default: 'left'
          source: null, // A jQuery selector, an url or a callback function.
          renaming: true, // When filling the sidr with existing content, choose to rename or not the classes and ids.
          body: 'NAME OF YOUR DIV' // For doing the page movement the 'body' element is animated by default, you can select another element to animate with this option.
          );
    });
    </script>

    You can view my website to see it working: https://therstyle.com

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: mb.YTPlayer] BG video breaking sidr menu’ is closed to new replies.