Home Forums WoodMart – Premium Template Add languages switcher to sticky header

This topic contains 1 reply, has 2 voices, and was last updated by Artem Temos Artem Temos 2 months, 4 weeks ago.

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

    ihor.youx
    Customer

    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

    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)

You must be logged in to reply to this topic.