WordPress.org

Support

Font settings for not loged in user

  • How to show font bar for not logged in users? I need to change some elements in registration page…

    what to add in this code?

    function pjw_logged_out_admin_bar( $wp_admin_bar) {
    	if ( ! is_user_logged_in() ) {
    		$wp_admin_bar->add_menu( array( 'title' => __( 'Log In' ), 'href' => wp_login_url(), 'parent' => 'top-secondary' ) );
    		if ( get_option('users_can_register') )
    			$wp_admin_bar->add_menu( array( 'title' => __( 'Register' ), 'href' => site_url( 'wp-login.php?action=register' ), 'parent' => 'top-secondary' ) );
    	}
    }
    
    add_action( 'admin_bar_menu', 'pjw_logged_out_admin_bar' );
    add_filter( 'show_admin_bar', '__return_true' , 1000 );

    http://wordpress.org/plugins/font/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author killerdeveloper

    @killerdeveloper

    Hi dface,
    why do you wan’t to do that? Even if you add the item to the admin bar Font plugin will not work because all it’s actions also require you to be logged in.

    hi,
    can you advise how to change fonts settings with your plugin outside admin area e.g. login and registration pages?

    also i cannot change in home page, welcome messages and some button texts, because it requires not logged in user to show this items

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Font settings for not loged in user’ is closed to new replies.
Skip to toolbar