WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Twenty Fourteen slider not slide (16 posts)

  1. jeffqc
    Member
    Posted 7 months ago #

    Hello!
    i just instal the Twenty Fourteen on a already working wordpress self-host site.
    Alss is working preety well but for some reason the slider is appearing, but not slide. The first image appear and all but they dont move like others sliders.

    Is this notmal?
    my site:
    http://babymetal.net/

  2. WPMU DEV
    Member
    Posted 7 months ago #

    Hi @jeffqc,

    This is the normal behavior of the theme. you have to click on next or previous arrow to move slides in the slider or press next / previous cursor keys to move it.

    Best Regards,

  3. jeffqc
    Member
    Posted 7 months ago #

    It would be nice to have an «auto-slide» option :)

  4. WPMU DEV
    Member
    Posted 7 months ago #

    Hi @jeffqc,

    It seems from the developer reply posted here that this option is intentionally left out from the slider.

    You can add following custom code in functions.php file of your child theme to make it auto slide.

    function add_script_in_footer(){
    ?>
    <script type="text/javascript" charset="utf-8">
        jQuery(document).ready(function(){
            var change_every = 5; // The number of seconds that the slider will auto-advance in
            var current = 1;
            function auto_advance(){
                if(current == -1) return false;
                jQuery('#featured-content .slider-next').eq(current % jQuery('#featured-content .slider-next').length).trigger('click', [true]);
                current++;
            };
            setInterval(function(){auto_advance()}, change_every * 1000);
        });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_script_in_footer');

    Cheers,

  5. jeffqc
    Member
    Posted 7 months ago #

    Whoa nice here is the result :

    http://babymetal.net/

    Tell them they can use my site in their theme «showcase» if they need.

  6. jeffqc
    Member
    Posted 7 months ago #

    Anothers thing, the slider image should hav an option to -autoresize- the images.

    should i start a new topic for that subject??

  7. WPyogi
    Volunteer Moderator
    Posted 7 months ago #

    should i start a new topic for that subject??

    Yes, and please do so on the theme's sub-forum:

    http://wordpress.org/support/theme/twentyfourteen#postform

  8. WPMU DEV
    Member
    Posted 7 months ago #

    Hi @jeffqc,

    You are most welcome.

    Anothers thing, the slider image should hav an option to -autoresize- the images.

    should i start a new topic for that subject??

    As per the Forum Welcome, please start a new topic.

    Cheers,

  9. betholsoncreative
    Member
    Posted 6 months ago #

    I used the code above and it worked like a charm. However if someone comes across this thread and isn't comfortable with child themes or altering their code, you can install the plugin called "fourteen Extended" by Zulfikar Nore. one of the many options it adds in the customize window (under Featured Slider Options) is to have the slider auto-advance. Works really well too!

  10. CKatzman
    Member
    Posted 5 months ago #

    I tried that code, when I put it into my child theme's functions.php file, I could not access my WordPress dashboard. The dashboard returned to normal when I removed that code. What am I doing wrong?

  11. esmi
    Forum Moderator
    Posted 5 months ago #

    @CKatzman: If you require assistance then, as per the Forum Welcome, please post your own topic.

    This 2 month old topic has been resolved.

  12. thepete
    Member
    Posted 5 months ago #

    Just wanted to add that the code worked perfectly for me, too. My only gripe is that it moves too fast. It's obvious how to lengthen how long each entry is visible, but not how to make the entry slide more slowly. But it's a minor problem, so it's not a big deal. So thanks for that code, WPMUDEV! Much appreciated!

  13. radio0but
    Member
    Posted 4 months ago #

    put the code at the final end of the php file that way your sure you dont cut anny codes. by the way thanks for the answer.

  14. team TFA
    Member
    Posted 3 months ago #

    i used this code in my webside. and everything got messed up. site not opening their is some error. http://www.tfa.co.in

  15. team TFA
    Member
    Posted 3 months ago #

    please help.

  16. WPMU DEV
    Member
    Posted 3 months ago #

    Hi @team TFA,

    Sorry to hear of the problem you are having.

    I have tested the code on my test site using latest version of Twenty Fourteen theme and it worked fine without any issue.

    I think the issue is raised on your site because of doing mistake in copy pasting the code in functions.php file of your theme.

    Could you please share me the code from functions.php file of your theme by pasting it on the site http://pastebin.com/ and sharing me its unique URL?

    I checked your site http://www.tfa.co.in/ and found the following error message.

    Parse error: syntax error, unexpected '}' in /home3/dhvanit/public_html/tfa/wp-content/themes/hiphop/functions.php on line 401

    It seems from the above error message that you might have added the code in the hiphop theme that you are using and not Twenty Fourteen theme. This code is developed for Twenty Fourteen theme so you should use it in the Twenty Fourteen theme.

    Cheers,
    WPMU DEV

Reply

You must log in to post.

About this Topic