Navigation

    Digital Liberation Forums

    • Register
    • Login
    • Search

    Cannot Add Two Scripts

    Header and Footer Scripts
    header javascript scripts wordpress
    3
    4
    52
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jhquisenberry last edited by jhquisenberry

      I am trying to add two scripts to the header of my site using plugin "Header and Footer Scripts". My site is https://theawesomemuse.com/

      I am able to add either of the two scripts, but I cannot add both. When I try to do so, I receive a 500 error.

      I am trying to add the scripts like this:

      <script src = …></script>
      <script type = "text/javascript" ...>
          [script content]
      </script>
      

      Even the following attempt produces a 500 error:

      <script type="text/javascript">console.log("testA")</script>
      <script type="text/javascript">console.log("testB")</script>
      

      How can I add both scripts to the header?

      1 Reply Last reply Reply Quote
      • anand
        anand last edited by

        Hello,

        I couldn't reproduce the issue. Please try reinstalling the plugin and let me know if it doesn't fix the issue. If it's file permission issue it will be fixed.

        Or May be it's a theme or plugin conflict. Also, could you share the exact js code you are trying to insert.

        PS: I can't fix the issue if it can't be reproduced on my system.

        1 Reply Last reply Reply Quote
        • anand
          anand last edited by

          This topic is being discussed here https://wordpress.org/support/topic/cannot-add-two-scripts/

          1 Reply Last reply Reply Quote
          • Miha Dm
            Miha Dm last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote
            • First post
              Last post