Display banner to logged-out users and hide header

This topic has 3 replies, 3 voices, and was last updated 1 years ago ago by Andrew Mitchell

  • Avatar: choc
    choc
    Participant
    November 23, 2024 at 22:32

    Hi I’m seeking help with the following on my WooCommerce store. For context, I’m also using the B2BKing plugin alongside the XStore theme.

    1. I want to display a banner/message on my website for users who are not logged-in/registered asking them to register & explaining a few things. I don’t want this banner displayed for logged-in users.

    2. I want to hide the header on my site from users who are not logged-in/registered as the sign-in form/register form is already displayed below by default via my B2BKing plugin.

    Any help is appreciated, thanks.

    2 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    November 24, 2024 at 11:45

    Hello,

    Thank you for reaching out to us.

    1/ You can try to use the Pro Elements plugin to create a dynamic banner and set visibility conditions for logged-out users
    https://elementor.com/help/show-and-hide-elements-on-a-page-display-conditions/
    Contact support of the plugin to get further assistance.

    2/ To hide the header for users who are not logged in, you can use custom CSS code:

    .b2bking_logged_out .elementor-location-header  {
        display: none;
    }

    https://www.8theme.com/documentation/xstore/additional-customisation/optimal-placement-for-custom-css-code/

    Best Regards,
    8Theme’s Team

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    November 26, 2024 at 06:59

    Dear choc,

    As we continue our mission to exceed expectations, your insights become increasingly valuable. Could we, with all due respect, request your thoughtful feedback by giving our theme a deserved 5-star rating on ThemeForest?

    Click here to share your valuable perspective: https://themeforest.net/downloads

    Your time and trust are highly appreciated!

    Best Regards,
    The 8Theme Team

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

The issue related to '‘Display banner to logged-out users and hide header’' has been successfully resolved, and the topic is now closed for further responses

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