How to override the wordpress default widget markup

http://codex.wordpress.org/Function_Reference/unregister_widget add something like this to functions.php: if (!function_exists(‘my_unregister_default_wp_widgets’)) { function my_unregister_default_wp_widgets() { unregister_widget(‘WP_Widget_Calendar’); unregister_widget(‘WP_Widget_Recent_Posts’); } add_action(‘widgets_init’, ‘my_unregister_default_wp_widgets’, 1); } Also… you can look at the http://codex.wordpress.org/Widgets_API examples to see how you can extend the WP_Widget class to create custom widgets that you want.

How do i manually place a widget code

Just register another widget area. Don’t take the name sidebar literally, you can use the fields anywhere on your page. In your theme’s functions.php: add_action( ‘after_setup_theme’, ‘register_multiple_widget_areas’ ); function register_multiple_widget_areas() { register_sidebar( array( ‘name’ => ‘Sidebar’, ‘id’ => ‘sidebar’, ‘description’ => ‘describe the function of the box.’ ) ); register_sidebar( array( ‘name’ => ‘Header’, ‘id’ … Read more

Widget Options Not saving

Your problem is that you’re calling the wrong method for generating the name attribute. It should be $this->get_field_name(‘via_cat’) Also, you can use wp_dropdown_categories(), no need to reinvent the wheel: wp_dropdown_categories(array( ‘name’ => $this->get_field_name(‘via_cat’), ‘selected’ => (int)$instance[‘via_cat’], ));

Add filter to blogroll widget

Filter the arguments for the blogroll: add_filter( ‘widget_links_args’, ‘wpse_76521_filter_blogroll’ ); function wpse_76521_filter_blogroll( $args ) { $li_start = isset ( $args[‘before’] ) ? $args[‘before’] : ‘<li>’; $args[‘before’] = $li_start . ‘<i class=”icon-ok”></i>’; return $args; } Explanation The blogroll is created by the widget class WP_Widget_Links. This class calls wp_list_bookmarks() with some prepared widget arguments which we … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)