• Hi

    I keep manually update the plugin after each update.
    Basically, in the admin menu the title says “Login Widget Settings”, when you hover over it, it says the same, “Login Widget Settings” in the submenu. I believe it would be better to have “Login Widget” as the main menu title (it’s shorter and looks cleaner in one line) and “Settings” (+ “Login Logs”) when hover over it.

    This is what I change.

    line 377:

    public function login_widget_afo_menu () {
    -    add_menu_page( 'Login Widget', 'Login Widget Settings', 'activate_plugins', 'login_widget_afo', array( $this,'login_widget_afo_options' ));
    +    add_menu_page( 'Login Widget', 'Login Widget', 'activate_plugins', 'login_widget_afo', array( $this,'login_widget_afo_options' ));
      }
    
    +  public function login_widget_afo_settings () {
    +    add_submenu_page( 'login_widget_afo', 'Settings', 'Settings', 'activate_plugins', 'login_widget_afo', array( $this, 'login_widget_afo_options' ));
    +  }
    
      public function load_login_admin_style(){
        wp_register_style( 'style_login_admin', plugin_dir_url( __FILE__ ) . '/style_login_admin.css' );
        wp_enqueue_style( 'style_login_admin' );
      }
    
      public function load_settings(){
        add_action( 'admin_menu' , array( $this, 'login_widget_afo_menu' ) );
    +    add_action( 'admin_menu', array( $this, 'login_widget_afo_settings' ) );
        add_action( 'admin_init', array( $this, 'login_widget_afo_save_settings' ) );
        add_action( 'plugins_loaded',  array( $this, 'login_widget_afo_text_domain' ) );
        add_action( 'admin_enqueue_scripts', array( $this, 'load_login_admin_style' ) );
      }

    https://wordpress.org/plugins/login-sidebar-widget/

  • The topic ‘Tiny visual improvement’ is closed to new replies.