[Resolved] Uncaught reference error

Home Forums Support Uncaught reference error

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #1338067

    Hi there,

    I believe a recent update of GP Premium created a glitch on my home page. A button ‘Yes Please’ is meant to reveal hidden tabs with the following javascript elements but I am now getting an error. I thought it may be Autoptimize or Cloudflare Rocket Loader but after deactivating these two, it still isn’t working.

    When I remove the elements, the error disappears, but the buttons still aren’t working…

    	(function() {
    jQuery('.toggle-button .fl-button').on('click', function(e){
    if ( jQuery('.toggle-section').is(':hidden') ) {
    jQuery('.toggle-section').css('display', 'block');
    } else {
    jQuery('.toggle-section').css('display', 'none');

    jQuery(document).ready(function($) {

    $(“.toggle-button a”).on(“click”,function(e){

    // Reset all columns visibility

    // Get target from clicked button attribute
    var target = $(this).closest(“.toggle-button”).attr(‘target’);

    // Toggle target visibility
    $(‘.’ + target).fadeToggle();

    // Disable links




    Sorry ignore my request πŸ™‚ This was caused by another plugin whose hide/show function uses the same js reference.

    Customer Support

    Glad you’ve figured out πŸ™‚

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