Change submenu markup

The whole idea of a custom walker class is that you can customize the menu in detail. So, you can also leave the main menu as it is and build the submenus the way you give in the image. However, as Hareesh indicates in the comments, this does require quite a lot of customization, especially … Read more

Filter widget outputs

The stock “category” widget uses wp_list_categories() and passes the arguments though widget_categories_args in the process. 716 /** 717 * Filter the arguments for the Categories widget. 718 * 719 * @since 2.8.0 720 * 721 * @param array $cat_args An array of Categories widget options. 722 */ 723 wp_list_categories( apply_filters( ‘widget_categories_args’, $cat_args ) ); You … Read more

Different single page templates for taxonomies

Use the single_template filter in your functions file with the correct conditional tag add_filter( ‘single_template’, ‘single_tax_term_template’ ); function single_tax_term_template( $single_template ) { global $post; if ( has_term( ”, ‘article’ ) ) { $single_template = dirname( __FILE__ ) . ‘/article.php’; } if ( has_term( ”, ‘news’ ) ) { $single_template = dirname( __FILE__ ) . ‘/news.php’; … Read more