• Resolved rjrjrjrj

    (@rjrjrjrj)


    Once I enable HTTP/2, all language switchers become broken: icons are gone from both inline and floating switchers and replaced with en_US etc, and the layout of inline switchers is expanded vertically. Any suggestions for how to fix that?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter rjrjrjrj

    (@rjrjrjrj)

    It is obviously a stylesheet loading/applying problem.
    I tortured the site in all possible ways and found that very seldom the CSS is not applied, even w/o HTTP/2.
    With HTTP/2 it is never applied. How and from where do you load your stylesheet?

    Hello there,

    We deeply apologize for the delayed response.

    There has been a great load on our support team in the past few days, but such a long reply time is very uncommon.

    I will try my best to replicate this on my instance and I will get back to you if I am not succesful in doing so.

    Both our language switchers get loaded from class-language-switcher.php, below you have the function:

    public function enqueue_language_switcher_scripts( ){
    
        if ( isset( $this->settings['trp-ls-floater'] ) && $this->settings['trp-ls-floater'] == 'yes' ) {
            wp_enqueue_style('trp-floater-language-switcher-style', TRP_PLUGIN_URL . 'assets/css/trp-floater-language-switcher.css', array(), TRP_PLUGIN_VERSION );
        }
    
        wp_enqueue_style( 'trp-language-switcher-style', TRP_PLUGIN_URL . 'assets/css/trp-language-switcher.css', array(), TRP_PLUGIN_VERSION );
    }

    Let me know if you have any further questions.

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘HTTP/2 breaks language switchers’ is closed to new replies.