-
AuthorPosts
-
August 16, 2022 at 1:39 pm #1361798
hi,
we are using the horizontal timeline. when u click the arrow, it only scrolls one entry at the time. is it possible to change it to 3 OR to the setting at how many entries are shown (in our case 3 – carouselSlidesToShow). filter would be nice. but I can also edit the timeline.js if necessary.greetings,
DUALWERKAugust 19, 2022 at 1:44 pm #1362171Hey DUALWERK,
Thanks for your question when the timeline is in horizontal scrolling mode it uses the \enfold\config-templatebuilder\avia-shortcodes\slideshow\slideshow.js on line 786 you will see a line that is commented out:
un-comment this line and comment out the line under it:
This will make to scroll all of the showing milestones, such as 3 at a time. I have linked to my test page below which has 9 milestones with 3 showing at a time.
After you edit the slideshow.js you will need to clear the Enfold Theme Options ▸ Performance ▸ JS & CSS file merging and compression by disabling it and then enable Enfold Theme Options ▸ Performance ▸ Delete old CSS and JS files and clear your browser cache.
I’m not sure if this will change other slider behaviors so you should check, if you want to add this modification to your child theme, ensure this function is in your child theme functions.php file:function avia_include_shortcode_template( $paths ) { if( ! is_array( $paths ) ) { $paths = array(); } $template_url = get_stylesheet_directory(); array_unshift( $paths, $template_url . '/shortcodes/' ); return $paths; } add_filter( 'avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1 );
then add the directory /shortcodes/ to your child theme and then copy the directory /slideshow/ with your customized file to the /shortcodes/ directory.
Then clear the file merging and compression and your browser cache.Best regards,
MikeSeptember 12, 2022 at 11:32 am #1364704Perfect, thank you! :)
September 12, 2022 at 11:35 am #1364708Hey!
We are glad that Mike could help! :)
For your information, you can take a look at Enfold documentation here – https://kriesi.at/documentation/enfold/
If you have any other questions or issues, feel free to start a new thread under Enfold sub forum and we will gladly try to help you :)
Enjoy the rest of your day!
Regards,
Yigit -
AuthorPosts
- The topic ‘timeline "scrollamount"’ is closed to new replies.