Title: Invalid shortcode attribute: theme_widget_styles
Last modified: August 20, 2016

---

# Invalid shortcode attribute: theme_widget_styles

 *  Resolved [sw](https://wordpress.org/support/users/shawnwyatt-1/)
 * (@shawnwyatt-1)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/invalid-shortcode-attribute-theme_widget_styles/)
 * Been using your plugin for a while, updating as needed. Updated my theme, created
   using Artisteer using the latest version of Artisteer (4.1.0.59861), and the 
   sidebar widget gave an instant error:
 * Invalid shortcode attribute: theme_widget_styles
 * The plugin still works for other albums on the site. The obvious is that my upgraded
   theme is breaking the widget, but I’m not sure how to fix.
 * [http://www.atimeforscience.org](http://www.atimeforscience.org)
 * [http://wordpress.org/extend/plugins/shashin/](http://wordpress.org/extend/plugins/shashin/)

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

 *  Plugin Author [Mike Toppa](https://wordpress.org/support/users/toppa/)
 * (@toppa)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/invalid-shortcode-attribute-theme_widget_styles/#post-3551951)
 * Hi Shawn – it looks like your theme is passing its own data through the widget
   form, which is being received by Shashin as a shortcode attribute, and its one
   that it doesn’t recognize, so its throwing an error. I’ll add some handling for
   this in the next version, but if you want a quick fix and you’re comfortable 
   editing code, open shashin/Public/ShashinShortcode.php, go to line 68 (inside
   the checkValidKeysAndAssign function) and comment out the “else” statement. That
   is, take this:
 *     ```
       else {
           throw New Exception(__('Invalid shortcode attribute: ', 'shashin') . htmlentities($k));
       }
       ```
   
 * and change it to this:
 *     ```
       //else {
       //    throw New Exception(__('Invalid shortcode attribute: ', 'shashin') . htmlentities($k));
       //}
       ```
   
 * Then it should just ignore the theme_widget_styles argument and proceed happily
   along.
 *  Thread Starter [sw](https://wordpress.org/support/users/shawnwyatt-1/)
 * (@shawnwyatt-1)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/invalid-shortcode-attribute-theme_widget_styles/#post-3551977)
 * Excellent!! It worked, awesome support. Donation sent. 🙂
 *  Plugin Author [Mike Toppa](https://wordpress.org/support/users/toppa/)
 * (@toppa)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/invalid-shortcode-attribute-theme_widget_styles/#post-3551978)
 * Thanks Shawn – it’s appreciated!
 *  Thread Starter [sw](https://wordpress.org/support/users/shawnwyatt-1/)
 * (@shawnwyatt-1)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/invalid-shortcode-attribute-theme_widget_styles/#post-3552214)
 * Happy to see my issue fixed in a recent update. Or, at least I’m assuming it 
   was as I upgraded.
 *  Plugin Author [Mike Toppa](https://wordpress.org/support/users/toppa/)
 * (@toppa)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/invalid-shortcode-attribute-theme_widget_styles/#post-3552215)
 * Yessir, that was one of the fixes in this release.

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

The topic ‘Invalid shortcode attribute: theme_widget_styles’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/shashin.svg)
 * [Shashin](https://wordpress.org/plugins/shashin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shashin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shashin/)
 * [Active Topics](https://wordpress.org/support/plugin/shashin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shashin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shashin/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Mike Toppa](https://wordpress.org/support/users/toppa/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/invalid-shortcode-attribute-theme_widget_styles/#post-3552215)
 * Status: resolved