Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Scripts not modifying or firing on divs

  • I have a slider(slick slider) feature that I am working on. I works great when I test it outside of generatepress, but not when it is on a generatepress page. It seems like the scripts are not firing, or being allowed to modify the necessary divs.

    The required scripts and css are being loaded via and element without any errors showing up—but nothing happens on the page.

  • hi there,

    Have you tried using a custom HTML block to insert the same content from your test HTML page?

    Let me know how that goes.

  • I found it works like this: I have to add the functions below the divs
    <script>
    $(‘.slide-show’).slick({
    slidesToShow: 1,
    slidesToScroll: 1,
    arrows: false,
    fade: true,
    asNavFor: ‘.slider-nav’
    });
    $(‘.slider-nav’).slick({
    slidesToShow: 1,
    slidesToScroll: 1,
    asNavFor: ‘.slide-show’,
    dots: true,
    centerMode: true,
    focusOnSelect: true
    });
    </script>

    I will try to put it in an element and place it at the bottom of the page instead of having it in page.

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