Adding Code

  • Unknown's avatar

    It seems that the system has changed a little bit. I am trying to cut and paste code from one blog to another and I am not having luck with it formatting correctly. Can you please advise?
    Thank you

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

  • Unknown's avatar

    Hi there,

    Are you trying to add source code to your blog posts? If yes, this can help –
    https://en.support.wordpress.com/code/posting-source-code/

    If there’s something else that you’re trying to do, let me know in a reply to this post and I’ll be happy to help :)

  • Unknown's avatar

    I am trying to cut and paste code from one blog to another and I am not having luck with it formatting correctly.

    What code? Could you put it here? (between code button/tags)

  • Unknown's avatar

    I checked your blog and I found this code in the widgets area –

    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-87213506-1', 'auto'); ga('send', 'pageview');

    It looks like you’re trying to add Google Analytics code. I’m sorry but here on WordPress.COM, JavaScript is not allowed for security reasons –

    Add Code to Your Site

  • Unknown's avatar

    Thank you for the help. It didn’t work but I just think that the code is supported on WordPress. I appreciate your quick response!

  • The topic ‘Adding Code’ is closed to new replies.