• Hi everyone.

    I have polylang elementor switcher (dropdown) in header section. While I am loading any website page, the dropdown menu expands for 1 second and then collapses (as it should be). This is how it looks during page loading: https://ibb.co/mF8SGV1 and this is how it looks when the page is loaded (it should be like this all the time): https://ibb.co/ftgYM7v

    Please somebody help me and thank you in advance!

Viewing 1 replies (of 1 total)
  • Plugin Author Pacotole

    (@pacotole)

    Hi,

    Language switcher styles are added only when widget is rendered and they are enqueued at the end of the page. This causes them to load later and temporarily have no styles.

    Try adding this code in your theme functions.php to enqueue CSS at page header:

    add_action( 'wp_enqueue_scripts', function() {
      wp_enqueue_style( 'cpel-language-switcher' );
    } );
Viewing 1 replies (of 1 total)
  • The topic ‘Dropdown menu is expanded while loading’ is closed to new replies.