Added functionality to hide new options unless a toggle is clicked
-
I found it annoying that the widget window would always expand to allow for the new Display Widgets options. Made it difficult to work with many widgets open at a time, too much screen real-estate devoted to display widgets.
So I added a collapse by default. Really simple code changes.
Added a wrapper around the new options sections within show_hide_widget_options()
<span class="dw_toggle" style="line-height:24px;text-decoration:underline;cursor:pointer;">Toggle Display Widgets Options</span> <div class="dw_collapse"> <!-- extra options section --> blah blah blah blah code </div> <!-- end extra options sections -->
And within
load_js()
Added the following style<style type="text/css"> .dw_collapse { display: none; } </style>
- The topic ‘Added functionality to hide new options unless a toggle is clicked’ is closed to new replies.