Title: [Plugin: Widget Logic] Formatting suggestion
Last modified: August 20, 2016

---

# [Plugin: Widget Logic] Formatting suggestion

 *  [smahnken](https://wordpress.org/support/users/smahnken/)
 * (@smahnken)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-widget-logic-formatting-suggestion/)
 * Thanks for the great plug-in. Very useful.
 * I found that some of my logic was too long to fit in the default edit box size.
   Subsequently noting that other text fields in the widgets were the full width
   of the widget dialog, I did some poking around and found that the text edit box
   that widget logic adds doesn’t specify a class.
 * Updating one line of the code:
 *     ```
       echo "<p><label for='".$id_disp."-widget_logic'>Widget logic:</label><input type='text' class='widefat' name='".$id_disp."-widget_logic' id='".$id_disp."-widget_logic' value='".$value."' /></p>";
       ```
   
 * That does the trick for me quite nicely, so I thought I’d share the changes.
 * Thanks again for contributing!
 * [http://wordpress.org/extend/plugins/widget-logic/](http://wordpress.org/extend/plugins/widget-logic/)

Viewing 1 replies (of 1 total)

 *  [alanft](https://wordpress.org/support/users/alanft/)
 * (@alanft)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-widget-logic-formatting-suggestion/#post-2604261)
 * Thanks. If you try the ‘development version’ you’ll find I’ve made the input 
   area a text area with that very class 🙂

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Widget Logic] Formatting suggestion’ is closed to new replies.

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

 * 1 reply
 * 2 participants
 * Last reply from: [alanft](https://wordpress.org/support/users/alanft/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-widget-logic-formatting-suggestion/#post-2604261)
 * Status: not a support question