WordPress.org

Ready to get started?Download WordPress

Forums

Calling Jquery (1 post)

  1. renato6
    Member
    Posted 2 years ago #

    Hello,
    i added a menu that requires jquery to my child theme but i can't call the jquery.js or the javascrit file (theme.js) where i have the jquery functions.

    here goes the code:

    <head>
    <?php wp_enqueue_script("jquery"); ?>
    <?php wp_head(); ?>
    <script type="text/javascript" src="<?php bloginfo("template_url");?>/js/theme.js">
    </script>
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>">
    </head>

    i guess the error is on the call of the plugin because i have a function inside theme.js that sends a message to the screen telling me if it works or not.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.