Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Aleksandar Urošević

    (@urkekg)

    Hello @leemediagroup ,

    Thank you for choosing Head & Footer Code for your project. Unfortunately, I have failed to reproduce the issue you have reported. Please check the screen recording: https://drive.google.com/file/d/16K5VHdqG3YCVUosm1R0L8SOzdyxvKZ3N/view?usp=drive_link

    Could you please:

    1. Let me know exact version of Head & Footer Code and WordPress.
    2. Record a video with steps to reproduce the issue.
    3. Exact original code that gets messed up (you can use pastebin.com to preserve original formatting).

    Please note, original code you have provided is not valid:

    <!– Google tag (gtag.js) –> <script src=”https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXX”></script&gt;

    It should use a proper HTML comment, double quote character and closing script tag, like this:

    <!-- Google tag (gtag.js) --><script src="https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXX"></script>

    Thank you in advance,
    Aleksandar

    Thread Starter Lee Media Group

    (@leemediagroup)

    I thing the editor altered my code, but this is the full code corrected: https://pastebin.com/dCHDXpNu

    Here is the list to the screen recording I made of what is happening: https://drive.google.com/file/d/1XTbigzc4eaWRxgvOaUiA4Xkwkglh7k_1/view?usp=sharing

    It’s a little hard to explain, so the screen recording might actually be a little clearer. Even though the code gets changed after it saves, it is putting the correct code on the front end – it’s only an issue if we make changes and save it again without correcting the tags again.

    We are using version 1.4.4 of the plugin on WordPress version 6.8.1. I’m seeing this happen on a few different sites that have different sets of plugins and themes, so I’m not sure how to determine if there’s a compatibility issue.

    Plugin Author Aleksandar Urošević

    (@urkekg)

    Thanks for screen recording and original code snippet. It’s definitely clash with something on website – some plugin or theme, as on WordPress 6.8.1 with theme Twenty Twenty-Five 1.2 scripts do not have ben converted to anchors:

    https://drive.google.com/file/d/1Sy9s3QpzOypnjOf3yBmlSAnMCWtyAFtQ/view?usp=drive_link

    Please let me know if you can disable other plugins (one by one) and test. If issue persists with disabled all other plugins, let me know what theme you use. Or, at least, what plugins you have active on all sites where this issue exists.

    That would help to investigate and fix the clash.

    Thanks,
    Aleksandar

    Plugin Author Aleksandar Urošević

    (@urkekg)

    Sorry for bumping, actually go opposite. First disable all plugins except HFC to be sure it’s not a theme. Then enable one by one plugin and re-test with each of them.

    Thread Starter Lee Media Group

    (@leemediagroup)

    This was a little tricky, but it looks like Jetpack is the plugin that’s causing the issue. I browsed through the Jetpack settings to see if I noticed anything that might be doing this, but I’m not seeing anything.

    Plugin Author Aleksandar Urošević

    (@urkekg)

    Great find! We have two options:

    1. Disable Jetpack (legacy?) feature: Go to Jetpack > Settings > Writing > Composing > Compose using shortcodes to embed media from popular sites. https://drive.google.com/file/d/1EDDfRjfYL2nQzVTNm42tMXV77YbsO0wp/view?usp=drive_link
    2. If you rather need to keep that option enabled, trial work-in-progress HFC version where I added Jetpack compatibility https://drive.google.com/file/d/1a0c72aM70yn1f-qXILWWa6vh8fLh6I5s/view?usp=drive_link
      If this works properly and does not introduce any other issues, I’ll publish version 1.5.5.

    Please let me know what best works for you.

    Aleksandar

    Thread Starter Lee Media Group

    (@leemediagroup)

    Thank you for helping find that! I tried the WIP version you sent, and that looks like it will work. Thank you so much for your help!

    Plugin Author Aleksandar Urošević

    (@urkekg)

    Good morning @leemediagroup,

    A new bugfix version 1.4.5 is released. Feel free to update on your project(s).

    Kind regards,
    Aleksandar

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Script Tags Appearing on Frontend’ is closed to new replies.