• Resolved ukbestrong

    (@ukbestrong)


    Firstly this plugin is so functional it has really improved our website for members.

    Thank you!

    It would be brilliant if it only displayed when a member was logged into the site.

    Is there a code snippet that we could use to add to the functions.php that would achieve this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ukbestrong

    (@ukbestrong)

    Sorted it!

    Add this to your themes custom css: –

    body:not(.logged-in) #fixed-bottom-menu 
    {
        display: none !important;
    }
    Plugin Author Katsushi Kawamori

    (@katsushi-kawamori)

    Hi,
    As of version 1.20, a filter is available.

    /** ==================================================
     * Filter of Fixed Bottom Menu
     *
     * fbm_hide
     * @param bool $hide  hide.
     */
    function fixed_bottom_menu_hide( $hide ) {
    	if ( ! is_user_logged_in() ) {
    		$hide = true;
    	}
    	return $hide;
    }
    add_filter( 'fbm_hide', 'fixed_bottom_menu_hide', 10, 1 );
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show only when logged in’ is closed to new replies.