Hey etech0,
Didnt see the plugin loaded or any modals in the footer. Let me know if you still need assistance.
Thread Starter
etech0
(@etech0)
Thanks for answering. The plugin is loaded and I see all sorts of emodal stuff in the page source. I just realized that that modal was not set to sitewide, and changed that, but it’s still not loading. Can you please advise?
Thanks!
Thread Starter
etech0
(@etech0)
An update because my modal is still not loading. I see this error in the console when loading the page:
Error: Syntax error, unrecognized expression: ‘#eModal-1’
Here is the code that tries to load the modal:
jQuery(document).ready(function($) {
setTimeout(function(){
var modal_id = 1;
$(“‘#eModal-” + modal_id + “‘”).emodal(‘open’);
}, 1000);
});
The site is dev.goinspire.com
Can you please advise? Thank you!
You must have a space in your selector.
Just ran jQuery(‘#eModal-1’).emodal(‘open’); in the console and modal popped right up.
Trying yours in console you likely need to change to use jQuery instead of $
We have actually lowered the cost of our auto open functionality. This would allow you to change the modal on a per page bases if needed very easily without changing any JS. Either way is fine but check here for an explanation of what is likely going wrong besides using $.
http://stackoverflow.com/questions/14347611/jquery-client-side-template-syntax-error-unrecognized-expression
Also there is no need for the + ""
Thread Starter
etech0
(@etech0)
Thanks for you reply. Removing the quotes fixed it. I must have copied some bad code to start with.