Grow your CSS skills. Land your dream job.

Where Exactly in My Header.PHP Do I Place Links to Jscripts Files in JS folder of my Theme

  • # August 11, 2012 at 1:42 pm

    I am new to WordPress and I would like some help. I am currently converting a HTML website to WordPress and I pretty much have the site going in WP. I want to be sure that I am doing it right so that I avoid future problems.
    Problem: I am not sure on how to call multiple stylesheets and also multiple java script files in my header. Thank you in advance for your help

    Here is what I have done this far.

    < !DOCTYPE HTML>
    >


    <br /> < ?php<br /> global $page, $paged;<br /> wp_title( '|', true, 'right' );<br /> bloginfo( 'name' );<br /> $site_description = get_bloginfo( 'description', 'display' );<br /> if ( $site_description && ( is_home() || is_front_page() ) )<br /> echo " | $site_description";<br /> if ( $paged >= 2 || $page >= 2 )<br /> echo ' | ' . sprintf( __( 'Page %s' ), max( $paged, $page ) );<br /> ?><br />

















    < ?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script('comment-reply'); ?>
    < ?php wp_head(); ?>


    >
    # August 11, 2012 at 9:06 pm

    I would actually be including all of those JS files in the footer, just before the closing body tag.

    # August 14, 2012 at 2:08 am

    Thanks for your help.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".