• Resolved macpheek

    (@macpheek)


    Hi, I’ve installed your plugin, created an account with snazzy maps and created an api key. When I go to the snazzy maps plugin I can’t see any styles. I’ve tried switching themes and deactivating all plugins but nothing seems to be conflicting. can you help?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Same problem on my site also. There are errors Issues on browser inspector like:

    Uncaught TypeError: $(…).live is not a function

    • This reply was modified 4 years, 6 months ago by sorefbaris.

    Same issue and error in the console. For reference: WordPress version 5.5.1

    If you’re up for editing the plugin and know your way around JavaScript it’s a fairly straight forward fix.

    All of the $(...).live(..., function functions need to be changed to $(...).click(function, $(...).submit(function, and $(...).change(function appropriately.

    Then, the the $('.style').submit(function (originally $('.style').live('submit',) needs to be moved up into the renderStyles function editing this line: container.append(...

    You should end up with something like this:

    
    let el = $(Mustache.to_html(styleTemplate, data)).data("style", style);
    el.submit(function() {
      $(this)
        .find('input[name="new_style"]')
        .val(encodeURIComponent(JSON.stringify($(this).data("style"))));
    });
    
    //Add to the last row
    container.append(el);
    
    Plugin Author atmistinc

    (@atmistinc)

    Sorry for the delay, we’ve updated the plugin to work the the latest version of WordPress (5.5.1). Please update the plugin to version 1.3.0 and let us know if you notice any other issues. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘can’t see any styles’ is closed to new replies.