Skip to main content

Posts

Showing posts from September, 2015

Register Menus in wordpress

Register Menus in wordpress  function register_my_menu() {   register_nav_menu('header-menu',__( 'Header Menu' )); } add_action( 'init', 'register_my_menu' ); Register Menus in wordpress  function register_my_menus() {   register_nav_menus(     array(       'header-menu' => __( 'Header Menu' ),       'extra-menu' => __( 'Extra Menu' )     )   ); } add_action( 'init', 'register_my_menus' );

Register Sidebars in wordpress

Register Sidebars in wordpress function custom_sidebar() { $args = array( 'id'            => 'sidebar-aside', 'name'          => __( 'saddam hussain  ', 'text_domain' ), 'description'   => __( 'right side baar .', 'text_domain' ), 'before_title'  => '<h3 class="widget-title">', 'after_title'   => '</h3>', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget'  => '</aside>', ); register_sidebar( $args ); } add_action( 'widgets_init', 'custom_sidebar' );

Custom tool bar sub menu by Saddam Hussain Saifi

Custom tool bar sub menu by Saddam Hussain Saifi  function custom_toolbar() { global $wp_admin_bar; $args = array( 'id'     => 'saddam', 'title'  => __( 'Saddam help', 'text_domain' ), ); $wp_admin_bar->add_menu( $args ); $args = array( 'id'     => 'child-menu', 'parent' => 'saddam', 'title'  => __( 'website', 'text_domain' ), 'href'   => 'http://imeandmyselfno1.blogspot.com/', );   $wp_admin_bar->add_menu( $args ); } add_action( 'wp_before_admin_bar_render', 'custom_toolbar', 999 );

Custom tool bar in wordpress by saddam hussain saifi

Custom tool bar in wordpress  by saddam hussain saifi function custom_toolbar() { global $wp_admin_bar; $args = array( 'id'     => 'saddam123321 ', 'title'  => __( 'saddam help ', 'text_domain' ), 'target'  => '_blank', 'href'   => 'http://imeandmyselfno1.blogspot.com/', ); $wp_admin_bar->add_menu( $args ); } add_action( 'wp_before_admin_bar_render', 'custom_toolbar', 999 );