Support » Plugins » Hacks » Plugins not running jquery

  • Hello, I am developing my own theme from scratch but I am quite new in this.
    I installed the plugin “Drag & Drop builder” from Themify and I tried to insert a image slider, but apparently it’s not loading the javascripts or jquery files from this plugin because it is just showing the pictures one above the other, without any effect.
    The same happens when I use the plugin “codecanyon-1362246-layerslider-responsive-wordpress-slider-plugin”
    Both plugins used within another theme are working properly.

    This is my functions.php:

    <?php
    
    add_theme_support('post-thumbnails');
    
    define('TEMPPATH', get_bloginfo('stylesheet_directory'));
    define('IMAGES', TEMPPATH. "/images");
    define('FONTS', TEMPPATH."/fonts");
    
    add_theme_support('nav_menus');
    
    if(function_exists ('register_nav_menus'))
    {
    	register_nav_menus(
    		array('main' => 'Main Nav')
    	);
    }
     if (function_exists('register_sidebar')){
    
     	register_sidebar (array(
    
     		'name' => __('Primary Sidebar', 'primary-sidebar'),
     		'id' => 'primary-widget-area',
     		'description'=> __('The primary widget area', 'dir'),
     		'before_widget'=>'<div class="widget">',
     		'after_widget'=>"</div>",
     		'before_title'=>'<h3 class="widget-title">',
     		'after_title'=> '</h3>',
    
     	) );
    
     }
    function my_init() {
    	if (!is_admin()) {
    		// comment out the next two lines to load the local copy of jQuery
    		wp_deregister_script('jquery');
    		wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js', false, '1.3.2');
    		wp_enqueue_script('jquery');
    	}
    }
    add_action('init', 'my_init');
     ?>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    I would appreciate so much if someone could help me.

    Thanks!

  • The topic ‘Plugins not running jquery’ is closed to new replies.