Removing Top Toolbar 'InspireBook' Menu


#1

I need to remove the ‘InspireBook’ toolbar link from the top Wordpress Toolbar. Where do I find it to delete it?


#2

Hello,
Add following line in function.php

function remove_inspirebook_link() {  
	remove_action( 'wp_before_admin_bar_render', 'inspirebook_admin_bar', 999 );  
}  
add_action( 'init', 'remove_inspirebook_link' );

#3

nice…

Is there any similar way to remove default sidebar/widget?

Thanks!


#4

Hello Mihail,
You mean remove entire sidebar section?


#5

Hi Sagar,

Well I would like to keep it, but the “default text widget” saying: “This theme comes with excellent technical Support by team of 30+ full-time developers…” is annoying…

I crated my own custom sidebars and set them to dissapear if there is no widgets in them…

I would also like to suggest that to you.
You could set an option in Inspirebook settings : “disable/hide sidebar if empty” (checkbox)…
so if the admin does NOT check this, your text will appear in case no widgets are in the sidebar, otherwise the sidebar would be hidden…

Until then, Yes… is there a function to hide it? or I have to comment it in theme files?

Cheers!


#6

Hello Mihail,

Thanks for the suggestion, I will surely add this in upcoming release.

To remove default sidebar you can use following code.

/**  
  * Remove rtPanel Default Sidebars using this function.  
  *   
  * @since rtPanelChild 1.0  
  */  
function rtp_remove_parent_sidebar(){  
    unregister_sidebar( 'sidebar-widgets' );  
}  
add_action( 'widgets_init', 'rtp_remove_parent_sidebar', 11 );
/* Remove default text from sidebar */  
remove_action( 'rtp_hook_sidebar_content', 'rtp_sidebar_content' );

Above code will remove sidebar and widgets, and sidebar is now empty. If you want to remove sidebar completely then add empty file sidebar.php in your child theme.

Let me for further assistance.


#7