1. dface
    Posted 2 years 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 );


  2. killerdeveloper
    Plugin Author

    Posted 2 years 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
    Posted 2 years ago #

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

  4. dface
    Posted 2 years 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 of Fonts For Web. NO CODING! Just click & change font size, colo
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.