Home Forums WoodMart support forum Add languages switcher to sticky header

Add languages switcher to sticky header

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #119876

    ihor.youx
    Participant

    Hi,
    in block “.wpml-ls-statics-shortcode_actions” I have swither.
    I tried this code
    $(‘.wpml-ls-statics-shortcode_actions’).clone().appendTo(‘body .whb-sticky-header .container’);
    But its not work, I think that .whb-sticky-header created dynamically. Have you any event for this?

    #119907

    Artem Temos
    Keymaster

    Hi,

    Yes, if you are using our sticky header “clone” it is created dynamically. Unfortunately, it doesn’t have any event. You can try to set some timeout after the page is loaded to be able to access it with JS. https://www.w3schools.com/jsref/met_win_settimeout.asp

    Regards

Viewing 2 posts - 1 through 2 (of 2 total)