Title: Javascript code display in html block for unautorized users
Last modified: August 21, 2021

---

# Javascript code display in html block for unautorized users

 *  Resolved [dencheg1903](https://wordpress.org/support/users/dencheg1903/)
 * (@dencheg1903)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/javascript-code-display-in-html-block-for-unautorized-users/)
 * Hi!
 * When I insert html block with javascript code inside into the page builder, after
   saving it appears for autorized wp users only [https://prnt.sc/1qdxzg3](https://prnt.sc/1qdxzg3)
   But for unautorized users script result appears at the very bottom of the page
   and without css styles [https://prnt.sc/1qdy0w8](https://prnt.sc/1qdy0w8)
 * Cache clearing does not help.
 * What should I do so javascript result appears correctly for unautorized users
   also? (in block I`ve inserted it, but not in footer whithout styles?
 * Thanks.

Viewing 11 replies - 1 through 11 (of 11 total)

 *  [pola11](https://wordpress.org/support/users/pmakabenta/)
 * (@pmakabenta)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/javascript-code-display-in-html-block-for-unautorized-users/#post-14796137)
 * [@dencheg1903](https://wordpress.org/support/users/dencheg1903/) Can you share
   with us the HTML code for us to take a look at!
 *  Thread Starter [dencheg1903](https://wordpress.org/support/users/dencheg1903/)
 * (@dencheg1903)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/javascript-code-display-in-html-block-for-unautorized-users/#post-14796262)
 * Here is two cases of same page:
 * 1. for logged in wp user
    2. for not logged in wp user [https://drive.google.com/drive/folders/1KyjCfdAAkkm1gGhnRbJoOmY210KjTn6e?usp=sharing](https://drive.google.com/drive/folders/1KyjCfdAAkkm1gGhnRbJoOmY210KjTn6e?usp=sharing)
 * As you can see:
    1. when I logged in wp, js-code displays just after opening 
   <body> tag (as I need) [https://prnt.sc/1qfrh85](https://prnt.sc/1qfrh85)
 * 2. But for not logged-in wp user js-code displays at the bottom of the page just
   before closing </body> [https://prnt.sc/1qfrm1h](https://prnt.sc/1qfrm1h)
 * Please advise how to fix this issue.
 *  [pola11](https://wordpress.org/support/users/pmakabenta/)
 * (@pmakabenta)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/javascript-code-display-in-html-block-for-unautorized-users/#post-14796680)
 * [@dencheg1903](https://wordpress.org/support/users/dencheg1903/) Can you try 
   to enable/disable Isolation mode here [https://www.seedprod.com/docs/troubleshooting/#page-not-showing-correctly-or-formatting-issue](https://www.seedprod.com/docs/troubleshooting/#page-not-showing-correctly-or-formatting-issue)
 * Please let me know if still not working.
 *  Thread Starter [dencheg1903](https://wordpress.org/support/users/dencheg1903/)
 * (@dencheg1903)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/javascript-code-display-in-html-block-for-unautorized-users/#post-14796753)
 * [@pmakabenta](https://wordpress.org/support/users/pmakabenta/) I tried to switch
   on/off isolation mode, but in both cases js-code displays corretly only when 
   I logged in wordpess. When I logout, js-code slill appears in footer and without
   css-styles.
 *  [pola11](https://wordpress.org/support/users/pmakabenta/)
 * (@pmakabenta)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/javascript-code-display-in-html-block-for-unautorized-users/#post-14796777)
 * [@dencheg1903](https://wordpress.org/support/users/dencheg1903/) Can you share
   with us a URL instead?
 *  Thread Starter [dencheg1903](https://wordpress.org/support/users/dencheg1903/)
 * (@dencheg1903)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/javascript-code-display-in-html-block-for-unautorized-users/#post-14796797)
 * [@pmakabenta](https://wordpress.org/support/users/pmakabenta/) [https://sputnikschool.ru/reg/](https://sputnikschool.ru/reg/)
 *  [pola11](https://wordpress.org/support/users/pmakabenta/)
 * (@pmakabenta)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/javascript-code-display-in-html-block-for-unautorized-users/#post-14796832)
 * [@dencheg1903](https://wordpress.org/support/users/dencheg1903/) We are able 
   to replicate it that it is in the bottom.
 * Again, can you share with us the javascript/HTML code for us to try on our testing
   site.
 *  Thread Starter [dencheg1903](https://wordpress.org/support/users/dencheg1903/)
 * (@dencheg1903)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/javascript-code-display-in-html-block-for-unautorized-users/#post-14797027)
 * [@pmakabenta](https://wordpress.org/support/users/pmakabenta/) Here is the js-
   code [https://drive.google.com/file/d/13in-BgEhpihD8aGME4bTeZNa9kIVJh3z/view?usp=sharing](https://drive.google.com/file/d/13in-BgEhpihD8aGME4bTeZNa9kIVJh3z/view?usp=sharing)
 * It just calculates webinar date depending when user visit web page.
 *  [pola11](https://wordpress.org/support/users/pmakabenta/)
 * (@pmakabenta)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/javascript-code-display-in-html-block-for-unautorized-users/#post-14797261)
 * [@dencheg1903](https://wordpress.org/support/users/dencheg1903/) As replicated,
   it’s working.
 * Preview: [https://a.supportally.com/BNulev](https://a.supportally.com/BNulev)
   
   Live: [https://a.supportally.com/co5yiY](https://a.supportally.com/co5yiY)
 * Can you try to drag the Contact HTML block at the top of your page again then
   insert the code.
 *  Thread Starter [dencheg1903](https://wordpress.org/support/users/dencheg1903/)
 * (@dencheg1903)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/javascript-code-display-in-html-block-for-unautorized-users/#post-14799001)
 * [@pmakabenta](https://wordpress.org/support/users/pmakabenta/) I`ve fiexed the
   issue!
 * After switching of all the plugins, js code displays correct in any mode.
    Looks
   like one of the plugins conflict with seedprod. In my case, it is cache plugin“
   WP Fastest Cache Premium”.
 * Thanks a lot for your help and sorry for bothering you.
 *  [pola11](https://wordpress.org/support/users/pmakabenta/)
 * (@pmakabenta)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/javascript-code-display-in-html-block-for-unautorized-users/#post-14799895)
 * [@dencheg1903](https://wordpress.org/support/users/dencheg1903/) Awesome! Thank
   you for the update.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Javascript code display in html block for unautorized users’ is closed
to new replies.

 * ![](https://ps.w.org/coming-soon/assets/icon-256x256.png?rev=2402574)
 * [Website Builder by SeedProd — Theme Builder, Landing Page Builder, Coming Soon Page, Maintenance Mode](https://wordpress.org/plugins/coming-soon/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/coming-soon/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/coming-soon/)
 * [Active Topics](https://wordpress.org/support/plugin/coming-soon/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/coming-soon/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/coming-soon/reviews/)

 * 11 replies
 * 2 participants
 * Last reply from: [pola11](https://wordpress.org/support/users/pmakabenta/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/javascript-code-display-in-html-block-for-unautorized-users/#post-14799895)
 * Status: resolved