Home Forums WoodMart support forum how to hide Mobile Bottom Navbar for users not logged in

how to hide Mobile Bottom Navbar for users not logged in

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #574898

    taylorkimjw1
    Participant

    I want to hide the Mobile Bottom Navbar for users that are not logged in.
    This would be for the mobile part of the store.

    #575006

    Luke Nielsen
    Keymaster

    Hello,

    Sorry to say but right now there is no option in Theme Settings available for that. It requires Customization and this is beyond our limitations and support policy scope.
    Hope you can understand our limitations.

    Best Regards.

    #575017

    taylorkimjw1
    Participant

    Is it possible to achieve my purpose?
    Can you tell me how to customize this?
    Which part in the code that I have to make modifications?
    I need to do this asap.
    Can you please assist me?

    #575408

    Luke Nielsen
    Keymaster

    Hello,

    Add the code below to the functions.php file in your child theme:

    add_action(
    	'init',
    	function () {
    		if ( ! is_user_logged_in() && has_action( 'wp_footer', 'woodmart_sticky_toolbar_template' ) ) {
    			remove_action( 'wp_footer', 'woodmart_sticky_toolbar_template' );
    		}
    	}
    );

    Clear the cache and recheck the issue.

    Kind Regards

Viewing 4 posts - 1 through 4 (of 4 total)