Calling Jquery (1 post)

  1. renato6
    Posted 3 years ago #

    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:

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

    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


No tags yet.