Title: usage in theme = &quot;uncaught syntaxError&quot;
Last modified: August 21, 2016

---

# usage in theme = "uncaught syntaxError"

 *  [Pirco the One and Only](https://wordpress.org/support/users/pirocpiroccom/)
 * (@pirocpiroccom)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/usage-in-theme-uncaught-syntaxerror/)
 * I used the sample code from the FAQ page and get error in chrome v28: “Uncaught
   Synta Error: Unexpected token &”
 * looking at source, it appears that a space is missing before “target” attribute.
 * `<div class="pins-feed-small"><a href="http://pinterest.com/pin/42713896439196205/"
   target="_BLANK" title="feathers - Pinned on Aug 03, 2013">`
 * [http://wordpress.org/plugins/pinterest-rss-widget/](http://wordpress.org/plugins/pinterest-rss-widget/)

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

 *  Thread Starter [Pirco the One and Only](https://wordpress.org/support/users/pirocpiroccom/)
 * (@pirocpiroccom)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/usage-in-theme-uncaught-syntaxerror/#post-3991677)
 * I fixed the issue above by adding space before “target” in the plugins source“
   pinterest-rss-widget.php” on line 76 like so `if ($target == 'newwindow') { $
   content .= ' target="_BLANK" '; };` but now there’s another error:
 * “Uncaught SyntaxError: Unexpected token ,”
 * that seems to be related to the nailthumb() function on line 107 of “pinterest-
   rss-widget.php” (commenting out that line solves the error and I don’t need that
   resizing of thumbs anyway.)
 *  Plugin Author [bkmacdaddy](https://wordpress.org/support/users/bkmacdaddy/)
 * (@bkmacdaddy)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/usage-in-theme-uncaught-syntaxerror/#post-3991951)
 * Please try upgrading to the latest version 2.2.4 and let me know if that resolves
   your issue. I’ve added the fix you implemented and suggested (thank you!)

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

The topic ‘usage in theme = "uncaught syntaxError"’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/pinterest-rss-widget_c6ccca.svg)
 * [Pinterest RSS Widget](https://wordpress.org/plugins/pinterest-rss-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pinterest-rss-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pinterest-rss-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/pinterest-rss-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pinterest-rss-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pinterest-rss-widget/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [bkmacdaddy](https://wordpress.org/support/users/bkmacdaddy/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/usage-in-theme-uncaught-syntaxerror/#post-3991951)
 * Status: not resolved