Conditional Header - by randyvarianda - on WordPress WooCommerce support

This topic has 4 replies, 3 voices, and was last updated 3 years, 1 months ago ago by Olga Barlow

  • Avatar: randyvarianda
    randyvarianda
    Participant
    February 26, 2021 at 05:27

    hi, can we set conditional header for different case, for example I want to show marketplace menu and cart after user login in my site? after login button in header will hide and marketplace and cart will show?

    3 Answers
    Avatar: Robert Hall
    Robert Hall
    Support staff
    February 26, 2021 at 07:14

    Hi

    First of all, thank you for using our theme and for contacting us.

    Theme Options > Header builder > Multiple headers > edit header for the Home page.

    see the video tutorial for setting up different headers.
    https://www.youtube.com/watch?v=BpeXfzNwkOc&feature=youtu.be

    Avatar: randyvarianda
    randyvarianda
    Participant
    February 26, 2021 at 12:16

    hi robert i still confused, where to add condition when user logged in or out then the header will changed based on it?

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 26, 2021 at 14:55

    Hello,

    Take our apologies, I suppose it was some misunderstanding. We don’t have option to hide the header for unlogged-in users. You can try custom CSS (Theme Options > Custom CSS) to implement this.
    For example,

    body:not(.logged-in) header.site-header {
        display: none;
    }

    Regards

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.