• I would like to put the code from my advertising network. I need to put the code just below <body> but when I do that code just disappears. could you please guide me how to do it. thank you.

    • This topic was modified 4 years, 1 month ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic

    The page I need help with: [log in to see the link]

Viewing 11 replies - 16 through 26 (of 26 total)
  • Thread Starter jp123

    (@jp123)

    hosting said nothing is blocking…

    any other possible solution?

    when I search same issue in google I see some other people has same issue but I see no solutions…..

    Vijay Hardaha

    (@vijayhardaha)

    I am unsure if there is any other possible solution, You can try writing simple text in the file instead of placing your js and see if that is being removed as well or not?

    Alternatively, you can add a simple <script>console.log("Hello world");</script> to see if that is being removed or not.

    Thread Starter jp123

    (@jp123)

    hosting said nothing is blocking.

    Vijay Hardaha

    (@vijayhardaha)

    Did you try what I suggested to check in my last reply?

    Thread Starter jp123

    (@jp123)

    Im not sure what you mean by “You can try writing simple text in the file instead of placing your js and see if that is being removed as well or not?”

    however I tried put this one at file editor and it worked. it is not removed.
    <script>console.log(“Hello world”);</script>

    Vijay Hardaha

    (@vijayhardaha)

    I’m not sure what you mean by “You can try writing simple text in the file instead of placing your js and see if that is being removed as well or not?”

    You can write a generic text like “I am testing issue” and see if that displays on the website top(if you write after body tag) or is being removed.

    however I tried put this one in file editor and it worked. it is not removed.
    <script>console.log(“Hello world”);</script>

    If possible please share the Javascript code that you’re trying to add? (Remove any private information from the script and replace with random letters)
    Maybe there is something wrong with the code that we didn’t notice yet.

    Thread Starter jp123

    (@jp123)

    I tested with text and its working, not removed.

    code I want to place on my site below (I changed actual ID number to MYID)

    <script>(function(s,u,z,p){s.src=u,s.setAttribute(‘data-zone’,z),p.appendChild(s);})(document.createElement(‘script’),’https://iclickcdn.com/tag.min.js&#8217;,MYID,document.body||document.documentElement)</script>

    Vijay Hardaha

    (@vijayhardaha)

    I did an online search about the code you’re trying to use. I have seen a few articles that state that this code you’re trying to use creates Push Notification & Redirection Malware on the website.

    I am guessing Jetpack is removing this code straight from files.

    Thread Starter jp123

    (@jp123)

    yeah I have Jetpack active on my site

    Thread Starter jp123

    (@jp123)

    ad network gave me new code and now it working, thank you very much for your help Vijay 🙂

    Vijay Hardaha

    (@vijayhardaha)

    Glad to know.

Viewing 11 replies - 16 through 26 (of 26 total)

The topic ‘placing code from advertising network’ is closed to new replies.