I’d like to change the admin bar’s link target to “_blank”. where what should I do? thanks. 1 Answer 1 function remove_admin_bar_links() { global $wp_admin_bar; $wp_admin_bar->remove_menu('site-name'); } add_action( 'wp_before_admin_bar_render',...
  • May 24, 2022
  • 0 Comments
After studying several blogs, I figured out that to add/edit/delete admin bar items need to do something like this: add_action( 'wp_before_admin_bar_render', 'wpse20131211_admin_bar' ); function wpse20131211_admin_bar() { global $wp_admin_bar; $wp_admin_bar->remove_menu('wp-logo');...
  • May 24, 2022
  • 0 Comments
When user is logged in WP add in its footer this CSS: <link rel="stylesheet" id='open-sans-css' href="https://fonts.googleapis.com/css?family=Open+Sans...." type="text/css" media="all" /> That style is not registered inside my theme, if I...
  • May 22, 2022
  • 0 Comments