• Hi!

    I have problem!

    I made a spry tabbed panels with dreamweaver cs4 and tried to embed it into wordpress theme, but no luck!

    Here is what I tried! I put the SpryTabbedPanels.css and SpryTabbedPanels.js in my themes root folder and I inserted in my header.php above </head> :

    <script type=”text/javascript” src=”<?php bloginfo(‘template_directory’); ?>/SpryTabbedPanels.js”></script> <link rel=”stylesheet” type=”text/css” href=”<?php bloginfo(‘template_directory’); ?>/SpryTabbedPanels.css” media=”screen” />

    in this case the css works fine, but the js doesn’t!

    I also tried:

    <script type=”text/javascript” src=”/SpryTabbedPanels.js”></script>

    and

    <script type=”text/javascript” src=”<?php bloginfo(‘template_url’); ?>/SpryTabbedPanels.js”></script>

    but none of them works!

    If someone can help – please tell me what am I doing wrong!

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter URE

    (@ure)

    That’s right – I also tried

    <?php
    wp_enqueue_script(‘SpryTabbedPanels’,
    WP_PLUGIN_URL . ‘/SpryTabbedPanels.js’,
    array(),
    ‘1.0’ );
    ?>

    but no luck!

    The prolem may not be with the JS include path, open the JS file and check for any paths directly in the JS and update as necessary..

    Just a suggestion, i don’t use the script myself.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problems adding Javascript!’ is closed to new replies.