• Hello,

    I have some issues with shadowbox. Firefox keep telling me that “Shadowbox is not defined” and underline this : Shadowbox.init(shadowbox_conf);

    I don’t know what to do to make it works. I tried to change the javascript library, turn off my other widget lightbox but nothing change.
    Moreover in safari, a link to wordpress and to the WP theme’s author I am using appears behind my posts.

    Anyone can help me ?

    Thanks a lot,

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Matt Martz

    (@sivel)

    Please provide a link to the site in question experiencing the problem. Shadowbox JS must be activated and a link given to where we can see the unintended behavior.

    Thread Starter maryannF

    (@maryannf)

    Here it is:
    https://www.latoileculturelle.com/lesite/design/patrick-jouin/

    Click on “questionnaire”

    this is the code in my post:
    Questionnaire

    thanks a lot

    Thread Starter maryannF

    (@maryannf)

    <blockquote><a href="https://spreadsheets.google.com/viewform?formkey=dFFsd2xZVC1pZ0ZxVnRUWGR0T0FQQkE6MQ" rel="shadowbox;height=140;width=120">Questionnaire</a>
    </blockquote>
    Plugin Author Matt Martz

    (@sivel)

    There is something broken with your site, it looks like it is due to HTML comments. I did a view source, and for one thing I see the shadowbox initialization code twice, not sure what is causing that.

    However this appears to be the bit that is causing shadowbox to not be defined:

    <!--<div id="footer">
    			<script type='text/javascript' src='https://yui.yahooapis.com/2.8.0/build/yahoo-dom-event/yahoo-dom-event.js?ver=2.8.0'></script>
    <script type='text/javascript' src='https://www.latoileculturelle.com/lesite/wp-content/uploads/shadowbox-js/aac33fafb71b1cec21a231278c13c215.js?ver=3.0.3'></script>
    <div id="mycontactform"> </div><script src="https://www.latoileculturelle.com/lesite/wp-content/plugins/tweetmeme/button.js" type="text/javascript"></script>
    <!-- Begin Shadowbox JS -->

    You have started an html comment <!-- directly before <div id="footer">, however you tried to put the close tag after the call to <?php wp_footer(); ?>. Which means that it is picking up the close tag --> that appears after Begin Shadowbox JS, and ignoring the --> that happens after </html>.

    This is causing browsers to ignore the script tags that appear between that footer div and the shadowbox initialization code.

    If I take a guess at what you were trying to do it is move the footer section to another spot in the page. Keep in mind that the <?php wp_footer(); ?> call should go directly before </body> and not elsewhere. Try removing the wp_footer code from earlier in the code and moving it to the place where I suggested.

    Or you could just clean up your code i general and remove everything that was commented out using html comments, and then place the wp_footer call in the appropriate place.

    Thread Starter maryannF

    (@maryannf)

    Whaaaaaa!!!!!

    That’s awesome, it was the footer’s comment. Incredible….. I just clean it up and everything works, you rock Matt !

    Have a good day.

    I am having this same problem “Shadowbox is not defined” and suggesting that Shadowbox.init(shadowbox_conf) is the problem.

    I can find the cause of my error? are you guys able to help out?

    https://www.imageworkshop.com/portfolio/

    okay, i eventually tracked down the fix.
    I am using the Shadowbox JS plugin. Turns out that this plugin has been removed from the repository at wordpress, and i had missed out on the latest update which fixed the compatibility issues. Follow the link below to find out more and download teh latest version if you require.

    https://sivel.net/2011/12/shadowbox-js-plugin-pulled-from-the-wordpress-org-repository/

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Shadowbox JS] Shadowbox open pages (video, HTML) in a new webpage without the plugin effect’ is closed to new replies.