Note that there are some explanatory texts on larger screens.

plurals
  1. PORegular FancyBox 1.3.4 w/ Wordpress - Link
    primarykey
    data
    text
    <p>when I search for this on google I just get a lot of wordpress plugin responses, so I'm asking here. </p> <p>I have a wordpress.org blog. There's a link that, onclick, I would like to open up a fancybox w/ some content inside of it, actually a spotify embeded playlist w/ a header. </p> <p>I've included all of the fancybox files and initialize, and no luck. Here is my code:</p> <p>Initialization:</p> <pre><code>&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="&lt;?php echo get_template_directory_uri();?&gt;/fancybox/jquery.fancybox-1.3.4.pack.js"&gt;&lt;/script&gt; &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo get_template_directory_uri();?&gt;/fancybox/jquery.fancybox-1.3.4.css" media="screen" /&gt; &lt;script type="text/javascript"&gt; $(document).ready(function() { $("a#playlist_pop").fancybox({ 'overlayShow' : false, 'transitionIn' : 'elastic', 'transitionOut' : 'elastic' }); }); &lt;/script&gt; </code></pre> <p>And here is my html:</p> <pre><code>&lt;div class="spotify_header" style="padding-bottom: 10px;padding-top: 10PX;text-align: center"&gt;CHECK US OUT ON &lt;a id="playlist_pop" href="#playlist_data"&gt;&lt;span&gt;SPOTIFY&lt;/span&gt;&lt;/a&gt; &lt;div style="display:none"&gt; &lt;div id="playlist_data"&gt; &lt;div id="Spotiplay"&gt; &lt;h3&gt;Artists We Love&lt;/h3&gt;&lt;br/&gt; &lt;div id="playlist_pop_con"&gt;&lt;iframe src="https://embed.spotify.com/?uri=spotify:user:yalefox:playlist:3NCBHSkbl0jLZtUnNWkdPh" width="312" height="392" frameborder="0" allowtransparency="true"&gt;&lt;/iframe&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;&lt;/div&gt; </code></pre> <p>Can anyone help me with this? Incredible how something so easy can be made such a pain in wordpress..</p> <p>I get this error message in the console: Uncaught TypeError: Object [object Object] has no method 'fancybox' </p> <p>Does this mean it's not reading the fancybox js files?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload