Change button style hook
-
Maybe the line in public function __construct(), that adds red background to admin_menu_bar button, should be added in ‘admin_bar_menu’ hook, because background is missing at frontend when mm is enabled.
add_action('admin_head', array( $this, 'style' )); //change to add_action('admin_bar_menu', array( $this, 'style' ));
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Change button style hook’ is closed to new replies.