WordPress.org

Forums

  1. dface
    Member
    Posted 1 year ago #

    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/

  2. killerdeveloper
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. dface
    Member
    Posted 1 year ago #

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

  4. dface
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Font - official webfonts plugin. NO CODING! Just click & change font size, color and font face v
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.