WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] The Featured Posts Slider in not working on WordPress 3.4 (5 posts)

  1. milan.j.mijatovic
    Member
    Posted 2 years ago #

    The Featured Posts Slider (FThemes) in not working on WordPress 3.4

    [ Moderator note: please use backticks or the code button when posting code snippets 10 lines or less. ]


    1. Edit lib/menu-primary.php and find:

    if(!wp_script_is('jquery')) {
    wp_enqueue_script('jquery');
    }
    
    if(!wp_script_is('hoverIntent')) {
    wp_enqueue_script('hoverIntent', THEMATER_URL . '/js/hoverIntent.js');
    }
    
    if(!wp_script_is('superfish')) {
    wp_enqueue_script('superfish', THEMATER_URL . '/js/superfish.js');
    }

    And replace with:

    function themater_menu_primary_scripts() {
    wp_enqueue_script( 'hoverIntent', THEMATER_URL . '/js/hoverIntent.js', array('jquery') );
    wp_enqueue_script( 'superfish', THEMATER_URL . '/js/superfish.js', array('jquery') );
    }
    add_action('wp_enqueue_scripts', 'themater_menu_primary_scripts');

    2. Edit lib/menu-secondary.php and find:

    if(!wp_script_is('jquery')) {
    wp_enqueue_script('jquery');
    }

    if(!wp_script_is('hoverIntent')) {
    wp_enqueue_script('hoverIntent', THEMATER_URL . '/js/hoverIntent.js');
    }

    if(!wp_script_is('superfish')) {
    wp_enqueue_script('superfish', THEMATER_URL . '/js/superfish.js');
    }

    And replace with:

    function themater_menu_secondary_scripts() {
    wp_enqueue_script( 'hoverIntent', THEMATER_URL . '/js/hoverIntent.js', array('jquery') );
    wp_enqueue_script( 'superfish', THEMATER_URL . '/js/superfish.js', array('jquery') );
    }
    add_action('wp_enqueue_scripts', 'themater_menu_secondary_scripts');

  2. susteve
    Member
    Posted 2 years ago #

    This worked great! Thank You for taking the time to post your knowledge and the fix on this. The site "featured posts" slider is back as it was and working smoothly.

  3. gum_tree@rogers.com
    Member
    Posted 2 years ago #

    Where do I find lib/menu-primary.php and lib/menu-secondary.php in order to replace and fix issue?

  4. milan.j.mijatovic
    Member
    Posted 2 years ago #

    wp-content\themes\

  5. MikeHupka
    Member
    Posted 1 year ago #

    gum_tree, thank you so much for sharing this info. I went in to make these adjustments and found that my WordPress files already showed the changes you suggested making. However I still can't seem to get the slider to actually rotate from one "featured" image to another. I checked to make sure I wasn't doing anything like limiting for only certain categories or something just to be sure. I can't get it to appear on my homepage but it remains on one image and never moves to any others. I'm currently using the "Custom Slides" option in the NewsLayer theme on WordPress 3.5.1. Does anyone have any ideas? I am open to all suggestions. It's nothing that is critical to the site (it's just for a club I belong to) but it was one of the reasons we chose the theme we did and it's a shame that we can't use it right now. Thanks in advance to any and all.

Topic Closed

This topic has been closed to new replies.

About this Topic