I'm trying to load an HTML page inside a Modal. I've got the following code on my wordpress page:
<a class='example7' href="http://google.com">Outside Webpage (Iframe)</a>
But I'm not sure where I should paste the following JavaScript:
$(".example7").colorbox({iframe:true, innerWidth:425, innerHeight:344});
You'll have to create a custom javascript file and enqueue it from your functions.php
file. Add the JavaScript code to that custom.js
file.
Alternately, you could also add that within the <script>
tags within your markup.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.