Nice Plugin
-
The plugin is what I need. But it does not style the calendar widget. I added following filter hook to my theme functions.php:
add_filter( 'get_calendar' , 'aus_calendar' , 2 ) ; function aus_calendar( $markup ) { $markup = str_replace( '<table id="wp-calendar"' , '<table id="wp-calendar" class="table table-stripped"' , $markup ) ; return $markup; }And I didn’t like search widget style, so I changed it:
add_filter( 'get_search_form' , 'aus_search_form' , 2 ) ; function aus_search_form( $markup ) { $markup = str_replace( 'class="search-form"' , 'class="search-form row"' , $markup ) ; $markup = str_replace( '<label' , '<label class="col-xs-12"' , $markup ) ; $markup = str_replace( '<input type="search"' , '<input type="search" class="form-control"' , $markup ) ; $markup = preg_replace( '/(<span class="screen-reader-text">.*?>)/' , '' , $markup ) ; $markup = preg_replace( '/(<input type="submit".*?>)/' , '' , $markup ) ; return $markup; }It would be great if the author updates the plugin.
The topic ‘Nice Plugin’ is closed to new replies.