• Resolved Adnan Afzal

    (@adnanafzal565)


    I am trying to add the following code:

    <script src="dist/open-image-modal.js"></script>

    But the post is not getting update when I do this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Peter Kiss (a11n)

    (@yscik8)

    Hey Adnan!

    Do you want to display this script tag, or run it on the page? The Syntaxhighlighter plugin, like the Code block, is only for displaying code. So when writing the post, you have to put the code either in the “SyntaxHighlighter Code” block, or, if you are not using the block editor, between [code] shortcode tags, like this:

    [code language="html"]
      <script src="dist/open-image-modal.js"></script>
    [/code]

    To run the code instead, take a look at the Code Snippets plugin, or add it to a custom plugin or template code.

    Thread Starter Adnan Afzal

    (@adnanafzal565)

    @yscik8 Okay. Thanks.

    Plugin Support Stef (a11n)

    (@erania-pinnera)

    Hey @adnanafzal565,

    I’m going to mark this thread as solved. If you have any further questions or need more help, you’re welcome to open another thread here. Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Unable to add script tag HTML code’ is closed to new replies.