WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Adding .js files to the header file. (1 post)

  1. wavio1
    Member
    Posted 2 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic