Issues with Video Player in the theme

This support request was posted in Flatbase by rrios

Request ID #39247 Resolved
  • Juanfra Aldasoro

    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.

    Good afternoon, is it updated now?

    Juanfra Aldasoro

    Hi,

    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

    Hi,

    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.

    Yes, that file has that class, nevertheless, when I remove the version, the issue is gone, I am looking how to modify that

    Ok, 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

    Thanks for the follow-up.

    I’m happy it’s working now.

    Have a nice day,
    Juan.

Viewing 8 posts - 16 through 23 (of 23 total)

This topic is marked as resolved

Only the topic author can re-open this thread.

Login to your Account

Welcome back! Please log in to your account by filling the fields below:

Forgot?

Not a member? Create a free account.

Create a Free Account

You're 27 seconds away from some awesome WordPress free stuff, benefits and more. Create a free account and have access to our free products, benefits and more!

Already have an account? Log in
Secure Server