Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • i forgot, i also turned on the “Do not call jQuery” in the fancybox troubleshooting option

    i think i managed to figure it out…
    i relocate these code from header.php

    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.form.js"></script>
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/ddsmoothmenu.js"></script>
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.nivo.slider.pack.js"></script>
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.prettyPhoto.js"></script>
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/custom.js"></script>
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/cufon-yui.js"></script>
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/Museo_Slab_500_400.font.js"></script>

    to home.php
    and then add these code into header.php (after <head>)

    <?php wp_enqueue_script("jquery"); ?>
    
    <?php wp_head(); ?>

    then everything’s fine, except now there is a a blank bar above my navigation menu…but i’ll just make do with it

    is this method ok?

    i tried to remove all the jquery script (posted above) from header.php and added the wp_enqueue_script() (the following code into header.php), and then fancybox worked.

    <?php wp_enqueue_script("jquery"); ?>
    
    <?php wp_head(); ?>

    however, i need the jquery to work the slider on my index page, without them, the slider won’t work.

    so what should i do to make them both work? do i relocate the jquery script somewhere else?

    i have these in my header.php

    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.form.js"></script>
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/ddsmoothmenu.js"></script>
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.nivo.slider.pack.js"></script>
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.prettyPhoto.js"></script>
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/custom.js"></script>
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/cufon-yui.js"></script>
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/Museo_Slab_500_400.font.js"></script>

    how would i go about modifying them??

    Thread Starter jentsai

    (@jentsai)

    I forgot to add the theme link:
    https://labs.andreamignolo.com/oulipo/

    thx

Viewing 5 replies - 1 through 5 (of 5 total)