| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
JSON-LD <script type="application/ld+json"> Question | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
JSON-LD <script type="application/ld+json"> Question
One of my static pages is ranking really well and we receive a large amount of traffic from this page. Recently we dropped from #2 to #5 so I'm trying to add JSON-LD structured data to this static page.
My issue is that while the structured data validates fine with the Google Structured Data Testing Tool, the testing tool can not not find it on the page. I moved it from the <body> to the <head> section but it's still not working and then I saw when using View Source that the <script type="application/ld+json"> changed to <script type="text/javascript"> so maybe that's why Google is not seeing it. Does anyone know how to stop <script type="application/ld+json"> from changing to <script type="text/javascript"> when x-cart publishes a static page? .tpl code Code:
Code:
__________________
X-Cart GoldPlus v4.7.12 | reBOOT (reDUX) Template v4.7.12.9 | Always The Best |
|||||||
#2
|
|||||||
|
|||||||
Re: JSON-LD <script type="application/ld+json"> Question
Here is valid Article starter code if anyone wants to use.
Code:
__________________
X-Cart GoldPlus v4.7.12 | reBOOT (reDUX) Template v4.7.12.9 | Always The Best |
|||||||
#3
|
|||||||||
|
|||||||||
Re: JSON-LD <script type="application/ld+json"> Question
Nothing in XC will replace type for script. You have something custom or 3rd party module doing this.
BTW you can safely place this script at the very bottom of the page. Google will find it regardless where it is
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#4
|
|||||||
|
|||||||
Re: JSON-LD <script type="application/ld+json"> Question
That helps narrow it a lot. Thanks Steve!
I can confirm it's the <script type="application/ld+json"> changing to <script type="text/javascript"> that is the problem. I copied the entire view source code from the browser and pasted it into the code area on Google Structured Data Testing Tool. I then changed <script type="text/javascript"> back to <script type="application/ld+json"> and the Google testing tool finds and verifies it. I tested with the structured markup data pasted at the end of the article text while editing the static page. I'll report back if I can fix why it's changing in the first place. Paul
__________________
X-Cart GoldPlus v4.7.12 | reBOOT (reDUX) Template v4.7.12.9 | Always The Best |
|||||||
#5
|
|||||||||
|
|||||||||
Re: JSON-LD <script type="application/ld+json"> Question
If you have cdseo that could be the issue or your theme. You can star by turning off 3rd party mods one by one to see which one is doing it
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#6
|
|||||||
|
|||||||
Re: JSON-LD <script type="application/ld+json"> Question
Quote:
__________________
X-Cart GoldPlus v4.7.12 | reBOOT (reDUX) Template v4.7.12.9 | Always The Best |
|||||||
#7
|
|||||||
|
|||||||
Re: JSON-LD <script type="application/ld+json"> Question
Might be the Dynamic Website Compressor Paul, try disabling it. I have modified it so that it ignores all JS including JSON-LD, get in touch if you want it.
__________________
xcartmods.co.uk |
|||||||
|
#8
|
|||||||
|
|||||||
Re: JSON-LD <script type="application/ld+json"> Question
Quote:
Hi Phil! BINGO! That solved it! Thank you so much! Paul
__________________
X-Cart GoldPlus v4.7.12 | reBOOT (reDUX) Template v4.7.12.9 | Always The Best |
|||||||
#9
|
|||||||
|
|||||||
Re: JSON-LD <script type="application/ld+json"> Question
Quote:
__________________
X-Cart GoldPlus v4.7.12 | reBOOT (reDUX) Template v4.7.12.9 | Always The Best |
|||||||
#10
|
|||||||||
|
|||||||||
Re: JSON-LD <script type="application/ld+json"> Question
You are welcome. Good to hear you got it resolved
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
|||
X-Cart forums © 2001-2020
|