Issues with Video Player in the theme
This support request was posted in Flatbase by rrios
- Juanfra Aldasoro July 12, 2019 at 3:50 pm
Hi,
Thanks for the follow-up.
Please confirm with your hosting that is not caching things – I know WPEngine has some special caching.
To confirm that the new file I shared with you is taking place, go to the current stylesheet -> https://beldevelopment.wpengine.com/wp-content/themes/flatbase/style.css?ver=5.2.2 and compare it with https://cloudup.com/croz4ECAz53
Try to search the class .mejs-button and confirm that it’s only part of the file I shared and not on your site stylesheet. Those styles we added will be fixing the problem.
Best,
Juan.Juanfra Aldasoro July 15, 2019 at 8:22 pmHi,
As far as I see in your file, it’s updated for me.
Best,
Juan.Hi Juan,
I could see you are using a versioned CSS, maybe that’s the issue
style.css?ver=5.2.2
The ver=5.2.2 is not helping to update the changes.
Juanfra Aldasoro July 16, 2019 at 1:35 pmHi,
Thank you for the follow-up.
That’s not the theme, that’s WordPress adding that. It’s actually to avoid having cached versions. It has nothing to do with the theme.
Please check if this file: https://beldevelopment.wpengine.com/wp-content/themes/flatbase/style.css
Has the .mejs classes we added. Compare it with the other and see if there are differences.
Best,
Juan.rrios July 16, 2019 at 2:26 pmYes, that file has that class, nevertheless, when I remove the version, the issue is gone, I am looking how to modify that
rrios July 16, 2019 at 2:31 pmOk, I modified the function file from the child them added this code
add_filter( 'style_loader_src', 'sdt_remove_ver_css_js', 9999, 2 ); add_filter( 'script_loader_src', 'sdt_remove_ver_css_js', 9999, 2 ); function sdt_remove_ver_css_js( $src, $handle ) { $handles_with_version = [ 'style' ]; // <-- Adjust to your needs! if ( strpos( $src, 'ver=' ) && ! in_array( $handle, $handles_with_version, true ) ) $src = remove_query_arg( 'ver', $src ); return $src; }
And it’s working now, thank you for all your help
Juanfra Aldasoro July 16, 2019 at 5:26 pmThanks for the follow-up.
I’m happy it’s working now.
Have a nice day,
Juan.
This topic is marked as resolved
Only the topic author can re-open this thread.