Good day.

Tell me how to write this script in the CSS file (Wordpress theme) so that it works. If I register in header.php, there is a conflict with another plugin (FancyBox for WordPress) on jQuery.

<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery-1.4.4.min.js"></script> <script type="text/javascript" src="http://XXXXXXXXXX/js/jquery.tipTip.js"></script> <script type="text/javascript" src="http://XXXXXXXXXX/js/jquery.tipTip.minified.js"></script> <link rel="stylesheet" type="text/css" href="http://XXXXXXXXXX/tipTip.css"> <script type="text/javascript"> $(function(){ $(".someClass").tipTip({defaultPosition: "right", fadeOut: 89900, activation: "hover"'}); }) </script> 

    2 answers 2

    For such cases, there is noConflict. Example of use:

     <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> $.noConflict(); </script> 
    • Unfortunately does not work - Budun

    wp_enqueue_script ('jquery'); So it is accepted to connect JS, in wordpress.

    • Be kind in more detail where to insert wp_enqueue_script ('jquery'); Before connecting jquery or how ?? - Budun