Okay
  Public Ticket #1584604
Get current height of full width layer
Closed

Comments

  • Felix Otto started the conversation

    Dear support,

    since the last update our script is not working any more.
    It seems that you removed the "ls-wp-fullwidth-helper" Class. We used this to get the actual height of the layerslider div.

    <div class="sidebarspacer"></div>

    <script type="text/javascript">
    $(window).resize(function() {
    var height = $('div.ls-wp-fullwidth-helper').height();
    $("div.sidebarspacer").css('height', (height  + 68).toString() + 'px');
    });

    $(document).ready(
    function() {
    var height = $('div.ls-wp-fullwidth-helper').height();
    $("div.sidebarspacer").css('height', (height  + 68).toString() + 'px');
    });
    </script>

    Is there any way to get this working again? Our sidbar moves behind the layerslider in full width.

    Thank you very much

  • [deleted] replied

    Hello Felix Otto,

    Thank you for getting in touch with us. My name is Attila and I'm happy to assist you today.

    I would like to confirm that we have received your message. Due to the nature of the issue you are experiencing, I will have to contact and consult with the development team first. I will get back to you as soon as I can.

    We appreciate your patience while we're working towards your ticket.

  • [deleted] replied

    Thank you for your patience. The dev team recommended that you use the LayerSlider API to achieve this. You can basically access anything through the API, including the slider dom element. 

    You can find details about the API here: https://layerslider.kreaturamedia.com/documentation/#layerslider-api