WordPress.org

Ready to get started?Download WordPress

Forums

Static page how to include external javascript files and css (2 posts)

  1. sephy12
    Member
    Posted 1 year ago #

    I have a form that has been created to a clients needs and I have inserted in to a static page, it displays it, but not properly as css is not being called and functionality is not working due to javascript not working either.

    I have tried in my custom page template (also tried inserting in header.php previously):

    <script type="text/javascript" src="http://www.chamandeepsingh.byethost7.com/wp-content/themes/whiteboard/js/jquery.js">
    </script>

    <link href="<?php bloginfo('template_directory'); ?>/formstyle.css" rel="stylesheet" type="text/css" />

    Any help is appreciated

  2. ubaidullahbutt
    Member
    Posted 1 year ago #

    Try using

    <?php bloginfo('template_url'); ?>

    For complete reference, go to http://codex.wordpress.org/Function_Reference/bloginfo.

Topic Closed

This topic has been closed to new replies.

About this Topic