Tagged: 

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #736148

    Hello!

    I used the information from this post: https://kriesi.at/support/topic/change-content-if-user-is-logged-in/

    However it’s not completely working. On the bottom of the page I have two images with text headings above them — they both have the same customer CSS name, but only the text is being hidden – not the images. Could you help me troubleshoot this?

    Thanks!

    #737638

    Hi StormCreek!

    Thank you for using Enfold.

    What is the css code that you use? Please add this one.

    .protected-content {
        display: none !important;
    }
    
    .logged-in .protected-content {
        display: block !important;
    }

    Regards,
    Ismael

    #749682

    Thanks Ismael, that worked! However, now when a logged-in user views it, the content alignment is off. It is no longer aligning in the center as it was before. I’ve given you the page link to see – any chance you can help with that?

    Thanks!

    #751726

    Hi,

    I’m unable to check for the issue you have mentioned above as I do not have login credentials. Please provide the required credentials so I can take a look at the issue. If possible please upload a screenshot/mockup to imgur.com and share the link here so we can help you better :)

    Best regards,
    Vinay

    #752362

    Oh, yeah I suppose that would help! Here you go.

    #753524

    Hi,

    Thank you for the credentials, we have updated the code display:block to display:inline-block and I confirm the elements align correctly.

    Please clear the browser cache by refreshing the page a few times and review the site now :)

    Best regards,
    Vinay

    #753840

    Wonderful, thank you so much – looks perfect!

    #754855

    Hi,

    Great, glad we could help. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #1273623
    This reply has been marked as private.
    #1273627

    Hey @taylordesigns,

    You added “—-” to your Quick CSS field to separate custom CSS codes I believe which broke CSS. I deleted them and now “view plots” button shows up for logged in users and “Register & Login” buttons for non-logged in users.

    Please review your website :)

    Best regards,
    Yigit

    #1273646

    Thank you very much for the fast response.

    #1273652

    Hi,

    You are welcome! If you have any other questions or issues, please feel free to start new threads under Enfold sub forum and enjoy the rest of your day :)

    Best regards,
    Yigit

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Hiding content unless user is logged in’ is closed to new replies.