Title: Incorrect HTML for Widget. JSON parse error
Last modified: April 28, 2022

---

# Incorrect HTML for Widget. JSON parse error

 *  [jazzaria](https://wordpress.org/support/users/jazzaria/)
 * (@jazzaria)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/incorrect-html-for-widget-json-parse-error/)
 * Good day,
 * I was given a ‘badge’ to insert into our website. I have inserted it via a widget(
   shortcode option). It shows up but I’d like it to look more centred, with some
   space between the badge and the top of the frame which it sits in.Please can 
   someone help me check if this html below is correctly set up:
 *     ```
       &nbsp;
       <center><a href="https://projectworldimpact.com/organization/orphans-unltd-inc" target="_blank" rel="noopener"><img src="https://projectworldimpact.com/partnership-badges/345173" /></a></center>
       ```
   
 * Secondly, our other badge is now not working.
    If I remove the code / broken 
   image and try to save (I’m in the widget section), I get a “JSON parse error”
   response. This is the short code they have given me for the second badge:
 * `<a href="https://www.guidestar.org/profile/04-3717267" target="_blank"><img 
   src="https://widgets.guidestar.org/TransparencySeal/6848577" /></a>`
 * Please assist? Is there a common cause to the “JSON parse error” response? I 
   have looked it up and it appears there are plenty things that could cause it;
   I wouldn’t know where to start.
 * Thank you.
    Kind regards, Jazz
    -  This topic was modified 4 years, 1 month ago by [jazzaria](https://wordpress.org/support/users/jazzaria/).
    -  This topic was modified 4 years, 1 month ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
      Reason: Moved to Fixing WordPress, this is not an Everything else WordPress
      topic
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fincorrect-html-for-widget-json-parse-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Thread Starter [jazzaria](https://wordpress.org/support/users/jazzaria/)
 * (@jazzaria)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/incorrect-html-for-widget-json-parse-error/#post-15599040)
 * When I try to remove the second badge, which appears to not work anymore. I get
   the following response: ‘The “text” block was affected by errors and may not 
   function properly. Check the developer tools for more details.’

Viewing 1 replies (of 1 total)

The topic ‘Incorrect HTML for Widget. JSON parse error’ is closed to new replies.

## Tags

 * [html](https://wordpress.org/support/topic-tag/html/)
 * [json](https://wordpress.org/support/topic-tag/json/)
 * [json parse error](https://wordpress.org/support/topic-tag/json-parse-error/)
 * [shortcode error](https://wordpress.org/support/topic-tag/shortcode-error/)
 * [shortcode issue](https://wordpress.org/support/topic-tag/shortcode-issue/)
 * [widget error](https://wordpress.org/support/topic-tag/widget-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [jazzaria](https://wordpress.org/support/users/jazzaria/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/incorrect-html-for-widget-json-parse-error/#post-15599040)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
