Solved

Why is there random code appearing on my website screen?

jcop24
Excursionist
23 2 2

Hi - 

 I hope someone can help answer my question. All of a sudden there is a random bit of code on the top left corner of my site (see images). The only thing I have done to edit it recently is my product descriptions, nothing to do with code. Does anyone know why it is there and how to get rid of it? It shows on mobile as well. 

 

Thanks in advance!

Jen

Screen Shot 2022-07-11 at 12.51.27 PM.pngScreen Shot 2022-07-11 at 12.51.19 PM.png

Accepted Solution (1)

Mac
Shopify Staff
1688 176 277

This is an accepted solution.

Hi, @jcop24!

Thanks for reaching out in our Community forums and for sharing your concern.

 

I'm happy to see that a few users were able to provide some assistance with finding the missing code in the header. As mentioned, this usually occurs due to malformed liquid code within your theme. To ensure that this is resolved, you will need to paste the code snippet as high in the <head> of the theme.liquid code as possible. We have a tutorial that goes over this right here on our Shopify guide

 

Kindly reply back to this thread with any questions or updates and we can continue our conversation further!

Mac | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

View solution in original post

Replies 9 (9)

KetanKumar
Shopify Partner
36904 3640 11985

@jcop24 

Sorry you are facing this issue, it would be my pleasure to help you.

Welcome to the Shopify community!😊
Thanks for your good question.

Please share your site URL,
I will check out the issue and provide you a solution here.

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
jcop24
Excursionist
23 2 2

Thank you very much!! I really appreciate your help! 

 

https://theantiagingpro.com/

KetanKumar
Shopify Partner
36904 3640 11985

@jcop24 

thanks for url can you please send theme.liquid 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing

PageFly-Richard
Shopify Partner
4338 987 1643

I’m Richard Nguyen - CRO Expert at PageFly- Free Landing Page Builder.

You can check at : theme -> Edit > Search "theme.liquid".

I checked and saw that you just added the google analytic code but it added in the wrong place, so there is an error code. you can cut this code to go up and look at the original standard code sample

RichardNguyen_0-1657609617776.png

 

This code error

RichardNguyen_1-1657609618042.png

 

If you find my comment useful, please let me know by giving it a Like. Thank you!

Richard - PageFly









Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.

jcop24
Excursionist
23 2 2

Thank you for your reply!

 

The code should look like the first image correct? So I should change mine to look like the first image? 

Delvra1
Visitor
1 0 0

Hi Richard. My page has this exact problem, please what should I do?

Mac
Shopify Staff
1688 176 277

This is an accepted solution.

Hi, @jcop24!

Thanks for reaching out in our Community forums and for sharing your concern.

 

I'm happy to see that a few users were able to provide some assistance with finding the missing code in the header. As mentioned, this usually occurs due to malformed liquid code within your theme. To ensure that this is resolved, you will need to paste the code snippet as high in the <head> of the theme.liquid code as possible. We have a tutorial that goes over this right here on our Shopify guide

 

Kindly reply back to this thread with any questions or updates and we can continue our conversation further!

Mac | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

jcop24
Excursionist
23 2 2

Thank you everyone for all your help! I realized that the person in charge of my SEO was adding some things to my code and accidentally caused the issue so he fixed it. However, I am sure one of your suggestions would have worked if he wasn't able to fix it. Thank you for all your help! I really appreciate it! 

 

Mac
Shopify Staff
1688 176 277

Hey, @jcop24!

 

Thank you very much for providing an update on your situation. I'm glad to see that you were able to locate and resolve the issue. Code changes can lead to a few unexpected errors so it's always a good idea to constantly back up and duplicate your theme file

 

Have a great day and best of luck in the future! 

Mac | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog