• Resolved wavio1

    (@wavio1)


    I’m trying to link .js files to my header.php for a gallery on my pages.

    <link rel=”shortcut icon” href=”<?php bloginfo(‘template_directory’); ?>/favicon.ico”>
    <link rel=”stylesheet” type=”text/css” href=”<?php bloginfo(‘template_url’); ?>/css/lightbox.css” media=”screen” />
    <link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?>”>
    <script type=”text/javascript” src=”<?php bloginfo(‘template_url’); ?>/js/scriptaculous.js?load=effects,builder”></script>
    <script type=”text/javascript” src=”<?php bloginfo(‘template_url’); ?>/js/lightbox.js”></script>
    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>”>

    <?php if ( is_singular() ) wp_enqueue_script(‘comment-reply’); ?>

    <?php wp_head(); ?>’

    I’ve tried a number of combos and the above is the last I tried using the <?php bloginfo(‘template_url’); ?> tag.

    thank you

  • The topic ‘Adding .js files to the header file.’ is closed to new replies.