Thickbox trigger on page load not working Divi theme

I have to load a thickbox modal on page load and put together this code.

<a href=”#TB_inline?height=600&amp;width=800&amp;inlineId=select_template” style=”display:none;” id=”select_show”> Test </a>
<script>

jQuery(document).ready(function($) {
setTimeout(function() {
$( “#select_show” ).trigger(‘click’);
},30);
});

</script>

It works on my test site running a Twenty-seventeen child theme but not on my Divi child theme template.

Here is the error I get

Uncaught Error: Syntax error, unrecognized expression: #TB_inline?height=600&width=800&inlineId=select_template

Any thoughts?

Read more here:: Thickbox trigger on page load not working Divi theme

Leave a Reply

Your email address will not be published. Required fields are marked *