0
votes

I'm having trouble getting a plugin to work on a live WordPress site that I'm doing some amendments to (designed by someone else). This is the page in question: http://www.thecareercollective.co.uk/map/

I've replicated the site on my local machine so I can test things without affecting the live site. I've got to the point where it's this custom theme which the plugin does not work with. I've changed the theme to twentytwelve & twentythirteen and the plugin works fine.

In the custom theme the isn't linking to this css file: http://www.mysite/wp-content/plugins/image-map-hotspot/css/jquery.hotspot.min.css?ver=3.9.1

When I test it locally with a different theme the above css file appears at the very bottom of the tag after the tag:

Any help would be appreciated!

1
Do you have any code of the initialization of this plugin. It could be a problem when initializing. This may seem stupid but is the plugin definitely activated. Is there any errors coming through in the log which you could post and also possibly posting the themes functions.php could be helpful as it may show it stopping plugins.Stewartside
The function.php file is very sparse: <?php if ( function_exists('register_sidebar') ){ register_sidebar(array( 'name' => 'leftsidebar', 'before_widget' => '', 'after_widget' => '', 'before_title' => '<h4>', 'after_title' => '</h4>', )); } ?>Darren Baker
I wouldnt know how to capture code of the plugin initialising. The plugin is definitely activated. No errors in the log as far as i can see.Darren Baker
The code will be in wp-content/plugins/plugin-name and it will be in one of the files. Just done a bit of googling and it looks like the plugin you're using is a paid plugin from codecanyon. Maybe you could try and contact the creators?Stewartside
I tried that but they said there is an error in the shortcodes.js file (another plugin entirely) - TypeError: 'undefined' is not a function (evaluating 'jQuery(document).on') - although I couldn't find the error myself.Darren Baker

1 Answers

0
votes

Its just an issue with your template jQuery and Plugin jQuery. Have a look which jQuery is being used by plugin and template. Both are using jQuery versions which conflicts with on another. Simply remove the confliction jQuery from the plugin and it will work.