petermainnwp
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Developing with WordPress
In reply to: Script code is not showing – only when logged inThank you, @threadi ,
We are using the WPCode – Insert Headers and Footers plugin as suggested in the article. I’m also using this code on other sites with no errors. I’m wondering if the issue is a conflict with other plugins.
Forum: Developing with WordPress
In reply to: Script code is not showing – only when logged inWe added the code three different ways. and all of them resulted in the same situation.
- we used the WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager plugin
- We went straight to the files and added it
- We created a custom plugin
For all three, the code is invisible when deployed – except for the beginning and ending comments.
We see the code and it works properly when logged in.
@whyviru , there is no mention of a “user” restriction condition in the head. The code we’ve inserted is:
<!-- Begin Mainn script -->
<script
async
data-mainn-id="123"
data-environment="production"
id="mainn-widget-script"
src="https://widget.mainn.io/scripts/mainn-widget.js"
></script>
<!-- End Mainn script -->the “123” is just an example. this code won’t work without a registered mainnID
- This reply was modified 1 year, 5 months ago by petermainnwp.
Viewing 2 replies - 1 through 2 (of 2 total)