• Hi,

    I installed the plugin and I’m using a custom theme.

    My problem is that even though all the rel attributes are added, the actual shadowbox.js file isn’t anywhere to be found. I tried setting up a custom filename, didn’t help.

    I did include wp_head() and wp_footer(), and the stylesheet is being embedded correctly, but the javascript is nowhere to be found

Viewing 6 replies - 1 through 6 (of 6 total)
  • Link or it didn’t happen…in all seriousness if you want me to troubleshoot an issue at least provide me with a URL so I can actually give you valid information.

    Also you should take note that the script that is referenced is not names shadowbox.js but something like wp-content/uploads/shadowbox/bunchoflettersandnumbers.js

    Thread Starter wpdom

    (@wpdom)

    Thanks for your reply.

    I’ll provide the source here, as the page is in development and not ready to be given out yet, sorry:

    This is generated by wp_head():

    <link rel='stylesheet' id='shadowbox-css-css'  href='http://example.com/wp/wp-content/plugins/shadowbox-js/shadowbox/shadowbox.css?ver=3.0.3' type='text/css' media='screen' />
    <link rel='stylesheet' id='shadowbox-extras-css'  href='http://example.com/wp/wp-content/plugins/shadowbox-js/css/extras.css?ver=3.0.3.8' type='text/css' media='screen' />
    <script type='text/javascript' src='http://example.com/wp/wp-includes/js/l10n.js?ver=20101110'></script>
    <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://example.com/wp/xmlrpc.php?rsd" />
    <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://example.com/wp/wp-includes/wlwmanifest.xml" />
    <link rel='index' title='example.com' href='http://example.com/wp/' />
    <link rel='next' title='news' href='http://example.com/wp/news/' />
    <meta name="generator" content="WordPress 3.1.3" />
    <link rel='canonical' href='http://example.com/wp/portfolio/' />

    This is the gallery that’s created using a custom filter:

    <div class="gallery"><ul class="clearfix"><li><a href='http://example.com/wp/wp-content/uploads/2011/06/Image.png' rel='shadowbox[sbalbum-13];player=img;' title='Image'><img width="185" height="119" src="http://example.com/wp/wp-content/uploads/2011/06/Image-185x119.png" class="attachment-thumbnail" alt="Image" title="Image" /></a></li>

    As you can see, the markup is being manipulated by adding the rel attributes, so something must be working.
    However, the shadowbox.js file is completely missing. The l10n.js file doesn’t have anything to do with it either.

    Also, wp_footer() doesn’t output anything either.

    I have the default settings, image links is true and smart loading is off.
    I hard-coded jQuery to be always embedded from google apis, I don’t think that makes a difference though.

    I hope that’s enough information.
    Thanks for your help!

    The shadowbox script outputs to the footer using wp_footer()

    If the styles are printing then so should scripts. If nothing is printing via wp_footer(0 then there is potentially another problem.

    You can grab this test plugin to test the functionality of wp_head() and wp_footer() and report that to you in the admin. There will be no notice in the admin once activated if everything is working. It only tells you when there is an issue:

    http://paste.sivel.net/24

    Thread Starter wpdom

    (@wpdom)

    The mistake was at my end. I actually didn’t call wp_footer(). Sorry for the stupidity 🙁

    But while I have your attention, let me ask one more thing:
    I have a gallery set up using the native gallery functionality. All thumbnails point to direct image links that are (now) opened nicely in shadowbox. However I want one of the images to point to a .mp4 file, which also should be opened in shadowbox using the same effect. How could I accomplish this?

    Thanks so much for your help!

    Dear Matt,

    I’m at a complete loss. Since the last update to 3.0.3.x (incl. your developer Version x=8) the plugin dows not work anymore. I narrowed it down to wp_footer() seemingly not inserting the code to load the <letters/numbers>.js file.

    The URL is http://nullseite.de.

    My current status:
    – all plugins disabled, only shadowbox enabled
    – no luck with caching of shadowbox.js enabled or disabled
    – current plugin version: 3.0.3.8 (stable tag as of readme.txt)
    – wp_footer() is called in footer.php

    Any help greatly appreciated!!!

    Many thx in advance
    Axel

    Ok, solved it by myself. I’m deregistering jquery via wp_deregister_script() in my head-section to include the latest version from ajax.googleapis.com:


    <?php wp_deregister_script(‘jquery’); ?>
    <?php wp_deregister_script(‘l10n’); ?>
    <?php wp_head(); ?>
    <script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js?ver=1.6.1″></script&gt;

    if I uncomment deregistering jquery, shadowbox inserts loading the md5.js-line and everything works fine.


    <?php //wp_deregister_script(‘jquery’); ?>
    <?php wp_deregister_script(‘l10n’); ?>
    <?php wp_head(); ?>

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘shadowbox.js missing’ is closed to new replies.