Hiding an area when user is not logged in

This topic has 7 replies, 2 voices, and was last updated 4 years, 3 months ago ago by tuijatuulia

  • Avatar: tuijatuulia
    tuijatuulia
    Participant
    November 7, 2020 at 02:22

    I wish to show GDPR-related area on MyAccount page when user is logged in, because this is the same page that is also used for Login/Register when not logged in.

    So, what am I doing wrong..I added this to Additional CSS and area disappeared well but now I cannot see it even when I am logged in..? Do you have some tip please?

    .ct-ultimate-gdpr-container{
    display:none;
    }
    /* to show area only to logged in users */
    .logged-in.ct-ultimate-gdpr-container {
    display: block !important;
    }

    6 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    November 7, 2020 at 10:54

    Hello,

    Just a bit change the code: https://prnt.sc/vf2uy2

    .ct-ultimate-gdpr-container{
     display:none;
    }
    /* to show area only to logged in users */
    .logged-in .ct-ultimate-gdpr-container {
     display: block !important;
    }

    Regards

    Avatar: tuijatuulia
    tuijatuulia
    Participant
    November 7, 2020 at 11:20

    Hi, thanks for the message. I checked the space – there is no extra space now – but still I cannot see the area when logged in. I stored this code to Elementor Additional CSS field. I add here login information if you can check this please.

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    November 7, 2020 at 13:40

    Hello,

    Please check now.

    Regards

    Avatar: tuijatuulia
    tuijatuulia
    Participant
    November 7, 2020 at 13:46

    Oh yes, you are the best! What did you do – I find the code to be the same?

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    November 7, 2020 at 13:49

    You’re welcome!
    Before – https://prnt.sc/vf4t7p , now – https://prnt.sc/vf4teq

    Regards

    Avatar: tuijatuulia
    tuijatuulia
    Participant
    November 7, 2020 at 13:51

    oh it needs to be separated with a space.. thank you so much.

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

The issue related to '‘Hiding an area when user is not logged in’' 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.