Black Friday Sale! Save up to 50% off!

How to show and edit the Java Scipt in a block

v.piasta
34 Posts
v.piasta posted this 4 weeks ago
Ask a Question

I have Java Script in a block in one of my web pages and need to eliminate/edit it but I see no way how to make it visible in nicepage editor. The code had been inserted long ago, probably as an HTML element. How can I edit this code? The block id is "sec-d5c9"

For some unknown reason, the script is now present 3 times in the block. I had inserted it only once.
This is what I see with Atom editor:

<section class="u-clearfix u-grey-10 u-section-6" id="sec-d5c9">
  <div class="u-clearfix u-sheet u-sheet-1">
    <div class="u-clearfix u-custom-html u-expanded-width u-custom-html-1"></div>


    <div class="u-clearfix u-custom-html u-expanded-width u-custom-html-2"><!--Start of Tawk.to Script-->
      <script type="text/javascript"> var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
      (function(){
      var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
      s1.async=true;
      s1.src='https://embed.tawk.to/######################';
      s1.charset='UTF-8';
      s1.setAttribute('crossorigin','*');
      s0.parentNode.insertBefore(s1,s0);
      })(); </script><!--End of Tawk.to Script-->
    </div>


    <div class="u-clearfix u-custom-html u-expanded-width u-custom-html-3"><!--Start of Tawk.to Script-->
      <script type="text/javascript"> var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
      (function(){
      var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
      s1.async=true;
      s1.src='https://embed.tawk.to/######################';
      s1.charset='UTF-8';
      s1.setAttribute('crossorigin','*');
      s0.parentNode.insertBefore(s1,s0);
      })(); </script><!--End of Tawk.to Script-->
    </div>


    <div class="u-clearfix u-custom-html u-expanded-width u-custom-html-4"><!--Start of Tawk.to Script-->
      <script type="text/javascript"> var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
      (function(){
      var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
      s1.async=true;
      s1.src='https://embed.tawk.to/######################';
      s1.charset='UTF-8';
      s1.setAttribute('crossorigin','*');
      s0.parentNode.insertBefore(s1,s0);
      })(); </script><!--End of Tawk.to Script-->
    </div>
  </div>
</section>
I have Java Script in a block in one of my web pages and need to eliminate/edit it but I see no way how to make it visible in nicepage editor. The code had been inserted long ago, probably as an HTML element. How can I edit this code? The block id is "sec-d5c9" For some unknown reason, the script is now present 3 times in the block. I had inserted it only once. This is what I see with Atom editor: <section class="u-clearfix u-grey-10 u-section-6" id="sec-d5c9"> <div class="u-clearfix u-sheet u-sheet-1"> <div class="u-clearfix u-custom-html u-expanded-width u-custom-html-1"></div> <div class="u-clearfix u-custom-html u-expanded-width u-custom-html-2"><!--Start of Tawk.to Script--> <script type="text/javascript"> var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date(); (function(){ var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0]; s1.async=true; s1.src='https://embed.tawk.to/######################'; s1.charset='UTF-8'; s1.setAttribute('crossorigin','*'); s0.parentNode.insertBefore(s1,s0); })(); </script><!--End of Tawk.to Script--> </div> <div class="u-clearfix u-custom-html u-expanded-width u-custom-html-3"><!--Start of Tawk.to Script--> <script type="text/javascript"> var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date(); (function(){ var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0]; s1.async=true; s1.src='https://embed.tawk.to/######################'; s1.charset='UTF-8'; s1.setAttribute('crossorigin','*'); s0.parentNode.insertBefore(s1,s0); })(); </script><!--End of Tawk.to Script--> </div> <div class="u-clearfix u-custom-html u-expanded-width u-custom-html-4"><!--Start of Tawk.to Script--> <script type="text/javascript"> var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date(); (function(){ var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0]; s1.async=true; s1.src='https://embed.tawk.to/######################'; s1.charset='UTF-8'; s1.setAttribute('crossorigin','*'); s0.parentNode.insertBefore(s1,s0); })(); </script><!--End of Tawk.to Script--> </div> </div> </section>

Last edited 4 weeks ago by v.piasta

Vote to pay developers attention to this features or issue.
3 Replies
Order By: Standard | Newest
Support Team
Support Team posted this 4 weeks ago

Hello Volker,

Thanks for contacting us.

If you add it in Site Settings >> HTML it will be still there.
If you add this code in the HTML on the web page you need to search the first page, on which page is it, then you can click on the layer tab, which is in the left panel, I'll add an image in the attachments, and then just search HTML in the list.

Please let us know if you have any further questions. The best wishes from Nicepage.
...................................................
Sincerely,
George.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hello Volker, Thanks for contacting us. If you add it in Site Settings >> HTML it will be still there. If you add this code in the HTML on the web page you need to search the first page, on which page is it, then you can click on the **layer** tab, which is in the left panel, I'll add an image in the attachments, and then just search HTML in the list. Please let us know if you have any further questions. The best wishes from Nicepage. ................................................... Sincerely, George. Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
v.piasta
34 Posts
v.piasta posted this 4 weeks ago

Thank you but this does not help.
You describe how to find the block with the code, but I know where it is anyway. I was looking for a way to show the code and edit it.
There seems to be no way other than to take out the block completely and put the code into the HTML page or site settings.

Thank you but this does not help. You describe how to find the block with the code, but I know where it is anyway. I was looking for a way to show the code and edit it. There seems to be no way other than to take out the block completely and put the code into the HTML page or site settings.
Support Team
Support Team posted this 4 weeks ago

Hello Volker,

We understand your frustration with the limitations of Nicepage's editor when it comes to editing JavaScript code within HTML blocks. Unfortunately, as you've correctly pointed out, there isn't a direct way to visually edit this code within the editor.

If you have any more questions or need any further assistance, feel free to ask!

...................................................
Sincerely,
George.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hello Volker, We understand your frustration with the limitations of Nicepage's editor when it comes to editing JavaScript code within HTML blocks. Unfortunately, as you've correctly pointed out, there isn't a direct way to visually edit this code within the editor. If you have any more questions or need any further assistance, feel free to ask! ................................................... Sincerely, George. Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
You must log in or register to leave comments