Javascript not working on my site

  • Unknown's avatar

    Hello

    I have the latest WordPress and is imposible to make the Javascripts work.
    Until now, I have add diferent codes, with diferent plug-ins and they are all invisible.

    And example is this code, no matter what I add before and after and it does not work.

    <script data-pkey="9ezoy7kx5u" data-rpmplayer type="text/javascript">var d=document,a=window.__Ananas__,n=d.createElement("script"),s=d.getElementsByTagName("script")[0];if(!d.getElementById("rpm_")){n.type="text/javascript"; n.id="rpm_"; n.async=true;n.src="https://www.redpineapplemedia.com/ananas/bundle.js";s.parentNode.insertBefore(n,s)};if(a){if(a.reInit){a.reInit()}}</script>

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    We cannot use JavaScript on WordPress.com.

    Add Code to Your Site

    Users are not allowed to post JavaScript on WordPress.com blogs. JavaScript can be used for malicious purposes. As an example, JavaScript has taken sites such as MySpace.com and LiveJournal offline in the past. The security of all WordPress.com blogs is a top priority for us, and until we can guarantee scripting languages will not be harmful, they will not be permitted.

  • Unknown's avatar

    <script lang=”javascript”>
    (function() {
    var _h1= document.getElementsByTagName(‘title’)[0] || false;
    var product_name = ”;
    if(_h1){
    product_name= _h1.textContent || _h1.innerText;
    }
    var ga = document.createElement(‘script’);
    ga.type = ‘text/javascript’;
    ga.src = ‘//live.vnpgroup.net/js/web_client_box.php?hash=e8c4d26030b14f496083c5e40594b59f&data=eyJzc29faWQiOjE5NjkzNDIsImhhc2giOiI5MDA3NGRkNTE2YjA1MDQyOWFjMTYxZDg0MGI2OWQwZCJ9&pname=’+product_name;
    var s = document.getElementsByTagName(‘script’);
    s[0].parentNode.insertBefore(ga, s[0]);
    })();
    </script>

  • Unknown's avatar

    You are in the wrong forum and need to be at WordPress.ORG for help with that version of the software.

  • The topic ‘Javascript not working on my site’ is closed to new replies.