Support » Plugin: Header Footer Code Manager » Add LD+JSON code – Help !!

  • Resolved Sarah Haruel

    (@sarah-haruel)


    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 Contributor DraftPress

    (@draftpress)

    @sarah-haruel The feature you’re looking for is not available at the moment.

    Thread Starter Sarah Haruel

    (@sarah-haruel)

    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 Contributor DraftPress

    (@draftpress)

    @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 Contributor DraftPress

    (@draftpress)

    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

    (@sarah-haruel)

    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)

    i add json as js snippet. And it works.

    <script type="application/ld+json">

    ... your data here

    </script>

    • This reply was modified 9 months, 4 weeks ago by Leskei.
    Thread Starter Sarah Haruel

    (@sarah-haruel)

    Hi @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 is this a good / simple / valid workaround without having to dismantle anything ?

    Plugin Contributor DraftPress

    (@draftpress)

    @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

    (@sarah-haruel)

    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 Contributor DraftPress

    (@draftpress)

    @sarah-haruel To show your snippets on all pages, please select Site Display > Site Wide

    Thread Starter Sarah Haruel

    (@sarah-haruel)

    Hi @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

    (@sarah-haruel)

    or is their a place in the database where entries from the tag list can be manually added via phpmyadmin ?

    • This reply was modified 9 months, 2 weeks ago by Sarah Haruel.
    Thread Starter Sarah Haruel

    (@sarah-haruel)

    Sorted – Your fantastic plugin 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 Contributor DraftPress

    (@draftpress)

    @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.