Add comment text with each install code

When working with multiple buttons, it would be helpful to include the name of the button as a comment in the HTML code. So you know which code belongs to which button.

1 Like

We do this manually right now by putting something like this above and below the elfsight script code, but it would be nice if the system did it automatically from the saved title of the form:

<!-- elfsight code for slide out form -->
Two line elfsight script
Two line elfsight script
<!-- elfsight code for slide out form -->
1 Like

@Oliver2 very nice suggestion, thank you for sharing!

@Hugh thanks a lot for your advice! I agree that it’s not the most convenient way to differentiate widgets in the HTML code, I’m going to share this topic with the team so that they take it under consideration. As usual, I’ll keep you posted here.

Thanks a million for helping us!

P.S. don’t forget to vote for the ideas you like, it does help us see what we’d better pay our attention to :slight_smile:

Not a widget but general for everyone. I would love the code provided for install to automatically have the name of the widget hidden in the code. To often I have multiple on the same page and the search for the number doesn’t always work well. I have only labeled a few otherwise that way. Thanks.

Nice idea, thanks for sharing @Rev_Devan :+1:

We’ll try to think this opportunity over in the future updates. I’ll keep you in the loop :slightly_smiling_face:

PLEASE click vote if you think this might be helpful - or even couldn’t hurt. Thanks!

Currently we add text to each installed code so we can track what it is and when it was added. This is especially necessary when there are several widgets used on a page. It would be great if when we get the code to add to the website it would include these comments automatically.

For example, here is what we are doing manually:


<!-- Elfsight Website Translator added 7-16-2024 -->
<script src="https://static.elfsight.com/platform/platform.js" data-use-service-core defer></script>
<div class="elfsight-app-xxxxxxx-7696-4268-8d63-xxxxxxxxxxxxxx" data-elfsight-app-lazy></div>
<!-- Elfsight Website Translator added 7-16-2024 -->

@Hugh Interesting idea, thanks for sharing :+1:

If it gets more votes, we’ll try to think it over in the future :slightly_smiling_face:

1 Like

Another comment to boost this. @Max this has to be the simplest update to implement in each widget, and it will save having to do this manually for every widget.

1 Like

Thank you for your comment, @Hugh! I’m happy to say that our devs are discussing this option as we speak, and chances are I’ll be able to move this idea to the “In Progress” status any time soon :slight_smile:

1 Like

Fantastic, thanks!

1 Like