Wrap all default widget into div tag

In the register_sidebar() call in functions.php. Look for before_widget and after_widget and modify as appropriate. The code below is the default usage. ‘before_widget’ => ‘<li id=”%1$s” class=”widget %2$s”>’, ‘after_widget’ => ‘</li>’,

Display single widget

You can force a particular widget that you have modified on the backend to show up if you can identify is sufficiently. I consider that very prone to error. You should be able to get the_widget to work if you pass enough detail through the (up to) three parameters– like this: the_widget(‘home_widget’,array(‘markup’ => ‘Yay’)); But … Read more

right_now_content_table_end function not working?

The new action is dashboard_glance_items. It is a filter providing an array to which you can add items. Example from my plugin T5 Taxonomy Location add_filter( ‘dashboard_glance_items’, array ( $this, ‘add_to_glance’ ) ); /** * Add locations to the new “At a glance” dashboard widget. * * @param array $items * @return array */ public … Read more

How to modify the default WordPress ‘Pages’ widget to have titles on the anchor tags?

A fast and short solution would be – function wpse_list_pages( $output ){ $output = preg_replace( ‘/<a(.*?)>(.*?)<\/a>/’, ‘<a$1 title=”$2″>$2</a>’, $output); return $output; } add_filter(‘wp_list_pages’, ‘wpse_list_pages’); And if you want a proper way, you could extend Walker_Page (ref: post-template.php) class and set the Pages Widget walker to class with widget_pages_args hook

Hide all Dashboard Widgets (not remove)

First of all I have to say taht after a quick investigations seems that no ‘dashboard_right_now’ or ‘dashboard_quick_press’ usermeta exists… so setting it to false like in you code can’t do anything. That said according to the docs there’s no way to specify where your widget shows up Docs lie. When an user logout and … Read more

Uses Cases for the Calendar Widget

As it sits, the calendar widget pretty much does just what you’ve said—allows people to troll the archives. Of course, it can be modified for different uses. One site I worked on used the Future plugin to convert the WordPress calendar widget into a calendar of events by creating a post for each event whose … Read more