Title: Add LD+JSON code &#8211; Help !!
Last modified: May 1, 2023

---

# Add LD+JSON code – Help !!

 *  Resolved [Sarah Haruel](https://wordpress.org/support/users/sarah-haruel/)
 * (@sarah-haruel)
 * [3 years ago](https://wordpress.org/support/topic/add-ldjson-code-help/)
 * Great, clean plugin – kudos to your team!
   I was ready to us it on my site but
   just discovered it doesnt do json.I would love to add <script type=”application/
   ld+json”> to my site using your plugin
 * It is possible to add it to the plugin or any pointers to a crude work around
   to allow ?
 * Many Thanks,
   Sarah

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

 *  Plugin Author [DraftPress Team](https://wordpress.org/support/users/draftpress/)
 * (@draftpress)
 * [3 years ago](https://wordpress.org/support/topic/add-ldjson-code-help/#post-16706624)
 * [@sarah-haruel](https://wordpress.org/support/users/sarah-haruel/) The feature
   you’re looking for is not available at the moment.
 *  Thread Starter [Sarah Haruel](https://wordpress.org/support/users/sarah-haruel/)
 * (@sarah-haruel)
 * [3 years ago](https://wordpress.org/support/topic/add-ldjson-code-help/#post-16706890)
 * Hello- thankyou for responding ?
 * Do you have any pointers in how to to insert the code in using your plugin.
   Is
   their a line or two of code I can add / tweak to make the plugin see ld-json 
   code like .js code ?I am not trying to downplay the expertise in coding a plugin,
   but am I being silly or would it be easy for me to change a little code to allow
   the plugin to add my code ?
 *  Plugin Author [DraftPress Team](https://wordpress.org/support/users/draftpress/)
 * (@draftpress)
 * [3 years ago](https://wordpress.org/support/topic/add-ldjson-code-help/#post-16726430)
 * [@sarah-haruel](https://wordpress.org/support/users/sarah-haruel/)
 * I understand that you’re interested in modifying our plugin to make it recognize
   ld-json code similar to .js code. While it’s not a straightforward task, you 
   can certainly give it a try by creating a pull request (PR) on our GitHub repository.
   We appreciate your enthusiasm and willingness to contribute.
 * Please keep in mind that altering the functionality of a plugin can be complex,
   and it might require a deep understanding of the codebase and the plugin’s architecture.
   We would suggest thoroughly analyzing the plugin’s logic and implementation to
   determine the feasibility of your proposed changes.
 * By creating a PR and outlining your modifications, we can review the code and
   evaluate its validity. If the changes align with the plugin’s goals and don’t
   introduce any significant issues, we will certainly consider merging them into
   the main codebase.
 * Remember, we appreciate your initiative and effort, and even if the suggested
   modifications may not be feasible, there may be other ways we can work together
   to enhance the plugin. Feel free to reach out if you have any further questions
   or need assistance during the process.
 *  Plugin Author [DraftPress Team](https://wordpress.org/support/users/draftpress/)
 * (@draftpress)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/add-ldjson-code-help/#post-16789611)
 * Sarah – We’re closing this ticket since it’s been a few weeks and it’s a feature
   request, not a support ticket.
 *  Thread Starter [Sarah Haruel](https://wordpress.org/support/users/sarah-haruel/)
 * (@sarah-haruel)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/add-ldjson-code-help/#post-16789669)
 * No problem – I found a couple of other header / footer programs on WordPress 
   that are more flexible than your plugin, in terms of putting the code I write
   into the place where I want it to go and its all working nicely.
   Not sure why
   its a massive thing for your plugin to implement .. its just static code right…
   like inputting javascript or something and just putting it, in the header or 
   footer or is it much more advanced than that ;0)
    -  This reply was modified 2 years, 11 months ago by [Sarah Haruel](https://wordpress.org/support/users/sarah-haruel/).
    -  This reply was modified 2 years, 11 months ago by [Sarah Haruel](https://wordpress.org/support/users/sarah-haruel/).
    -  This reply was modified 2 years, 11 months ago by [Sarah Haruel](https://wordpress.org/support/users/sarah-haruel/).
 *  [Alex Miller](https://wordpress.org/support/users/leskei/)
 * (@leskei)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/add-ldjson-code-help/#post-16790731)
 * i add json as js snippet. And it works.
 * `<script type="application/ld+json">`
 * `... your data here`…
 * `</script>`
    -  This reply was modified 2 years, 11 months ago by [Alex Miller](https://wordpress.org/support/users/leskei/).
 *  Thread Starter [Sarah Haruel](https://wordpress.org/support/users/sarah-haruel/)
 * (@sarah-haruel)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/add-ldjson-code-help/#post-16790956)
 * Hi [@leskei](https://wordpress.org/support/users/leskei/) – thankyou for that,
   I will see if I can try it on a test site this weekend.
   Im not going to lie that
   I would be a little disappointed in the developer if it was that easy to add 
   the code as opposed to be walked down the lane of trying to alter the functionality
   of a plugin or develop deep understanding of the codebase / plugin architecture
   or even steered down the lane of purchasing the PRO version of a plugin some 
   developers ( not this one, try to do )[@draftpress](https://wordpress.org/support/users/draftpress/)
   is this a good / simple / valid workaround without having to dismantle anything?
 *  Plugin Author [DraftPress Team](https://wordpress.org/support/users/draftpress/)
 * (@draftpress)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/add-ldjson-code-help/#post-16798284)
 * [@sarah-haruel](https://wordpress.org/support/users/sarah-haruel/) While the 
   plugin may not directly support working with JSON, you can still add your JSON
   data to your website using the following format:
   `<script type="application/ld
   +json">``Code Here``</script>`
 * By including this code snippet in your website, you can add your JSON data without
   any issues.
 *  Thread Starter [Sarah Haruel](https://wordpress.org/support/users/sarah-haruel/)
 * (@sarah-haruel)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/add-ldjson-code-help/#post-16815118)
 * it works great – thank you.
 * One last question – i know i can select specific archive – tag and posts but 
   i have 500 pages and selecting all of them is going to be time consuming 
   is 
   their a way to select all of them in one go ?Thanks
 *  Plugin Author [DraftPress Team](https://wordpress.org/support/users/draftpress/)
 * (@draftpress)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/add-ldjson-code-help/#post-16815122)
 * [@sarah-haruel](https://wordpress.org/support/users/sarah-haruel/) To show your
   snippets on all pages, please select **Site Display > Site Wide**
 *  Thread Starter [Sarah Haruel](https://wordpress.org/support/users/sarah-haruel/)
 * (@sarah-haruel)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/add-ldjson-code-help/#post-16815125)
 * Hi [@draftpress](https://wordpress.org/support/users/draftpress/) thanks for 
   your response – the issue is the code is soley for the 500 pages and not any 
   other pages on the site ‘0(
   So using the sitewide would muddle things up so to
   speak
 *  Thread Starter [Sarah Haruel](https://wordpress.org/support/users/sarah-haruel/)
 * (@sarah-haruel)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/add-ldjson-code-help/#post-16815129)
 * or is their a place in the database where entries from the tag list can be manually
   added via phpmyadmin ?
    -  This reply was modified 2 years, 11 months ago by [Sarah Haruel](https://wordpress.org/support/users/sarah-haruel/).
 *  Thread Starter [Sarah Haruel](https://wordpress.org/support/users/sarah-haruel/)
 * (@sarah-haruel)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/add-ldjson-code-help/#post-16815151)
 * Sorted – Your fantastic plugin **Show IDs** ) [https://en-gb.wordpress.org/plugins/wpsite-show-ids/](https://en-gb.wordpress.org/plugins/wpsite-show-ids/))
   
   gives me all the info on the front end tag admin screen and I have found the 
   table in the database and can just drop them in i think
 *  Plugin Author [DraftPress Team](https://wordpress.org/support/users/draftpress/)
 * (@draftpress)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/add-ldjson-code-help/#post-16815206)
 * [@sarah-haruel](https://wordpress.org/support/users/sarah-haruel/) While it is
   technically possible to manually add entries to the database using phpMyAdmin,
   we strongly advise against it. Modifying the database directly carries the risk
   of introducing errors or even locking you out of your site if not done correctly.
   It’s always recommended to use the available functionality within WordPress or
   plugins to manage code and settings.
   We suggest creating a unique category for
   the 500 pages and applying the code specifically to that category. This will 
   allow you to target the desired pages without affecting other areas of your website.

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

The topic ‘Add LD+JSON code – Help !!’ is closed to new replies.

 * ![](https://ps.w.org/header-footer-code-manager/assets/icon-256x256.png?rev=2681303)
 * [Header Footer Code Manager](https://wordpress.org/plugins/header-footer-code-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/header-footer-code-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/header-footer-code-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/header-footer-code-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/header-footer-code-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/header-footer-code-manager/reviews/)

 * 14 replies
 * 3 participants
 * Last reply from: [DraftPress Team](https://wordpress.org/support/users/draftpress/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/add-ldjson-code-help/#post-16815206)
 * Status: resolved