Tagged: color section, no loop, video
-
AuthorPosts
-
December 20, 2020 at 9:05 pm #1268856
Servus, Hi Krisi-team,
I followed this topic to solve the same problem – just play the video once and finish with last frame in color-section:
In child theme I made a new folder ”shortcodes” with the ”section.php” modified as suggested from ”true” to ”false”. In functions.php I added this code:
add_filter(‘avia_load_shortcodes’, ‘avia_include_shortcode_template’, 15, 1);
function avia_include_shortcode_template($paths)
{
$template_url = get_stylesheet_directory();
array_unshift($paths, $template_url.’/shortcodes/’);return $paths;
}But nothing happend, the video is still looping as bevore.
As the Tread ist already four years old, is there any new way that makes my whish work?best regards
chrisDecember 22, 2020 at 8:07 am #1269252Hi Christian,
The Color Section still uses:
'video_loop' => true,
for looping videos.
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.- Install and activate ” Temporary Login Without Password “.
- Go to ” Users > Temporary Logins ” on the left-side menu.
- Click ” Create New “.
- Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
( to be sure that we have enough time to debug ). - Click ” Submit “.
- You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.
When your issue is fixed, you can always remove the plugin!
If you prefer to not use the plugin, you can manually create an admin user and post the login credentials in the “private data” field.Best regards,
NikkoDecember 22, 2020 at 1:13 pm #1269306This reply has been marked as private.December 29, 2020 at 3:17 pm #1269966Hi,
Sorry for the very late reply, and thanks for the login, it looks like you (*someone) added the “section.php” to your child theme, but the function to use it was commented out:/* add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1); function avia_include_shortcode_template($paths) { $template_url = get_stylesheet_directory(); array_unshift($paths, $template_url.'/shortcodes/'); return $paths; } */
I uncommented this function so your custom “section.php” will be used, and in my test it is now working, please clear your browser cache and check.
Best regards,
MikeJanuary 3, 2021 at 1:22 pm #1270042Hi,
thanks now this works,
I even managed to make a transfer to the main web-side where this function will be needed.But just one more try to optimize it more:
Is it possible to finish the video with the last picture/frame of the film as a still/picture,
not as now, with (looping) and stopping with the first frame/picture after getting to the startpoint after loop,
without running the whole video once more.Please see an example here: https://www.glademichelwirtz.com/team/
Hope we can manage this too!
Best regards,
ChrisJanuary 4, 2021 at 5:22 am #1270094Hi,
This should be possible using a custom script that checks for the current position or time of the video., then manually pause it on a specified time. If you are using an mp4 or a locally hosted video, you can check for the timeUpdate event.
// https://www.w3schools.com/tags/av_event_timeupdate.asp
Example of the snippet can be found here.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.