Support » Plugin: Maintenance Mode » Change button style hook

  • Resolved esemlabel

    (@esemlabel)


    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' ));
    • This topic was modified 3 years, 7 months ago by esemlabel.
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.