WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] The Featured Posts Slider in not working on WordPress 3.4

[Resolved] The Featured Posts Slider in not working on WordPress 3.4

  • milan.j.mijatovic
    Member

    @milanjmijatovic

    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’);

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.

    gum_tree@rogers.com
    Member

    @gum_treerogerscom

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

    milan.j.mijatovic
    Member

    @milanjmijatovic

    wp-content\themes\

    MikeHupka
    Member

    @mikehupka

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] The Featured Posts Slider in not working on WordPress 3.4’ is closed to new replies.