Tagged: hide content
-
AuthorPosts
-
January 20, 2017 at 1:15 am #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!
January 24, 2017 at 10:10 am #737638Hi 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,
IsmaelFebruary 21, 2017 at 1:04 am #749682Thanks 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!
February 25, 2017 at 8:26 am #751726Hi,
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,
VinayFebruary 27, 2017 at 4:56 pm #752362Oh, yeah I suppose that would help! Here you go.
March 1, 2017 at 8:58 am #753524Hi,
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,
VinayMarch 1, 2017 at 6:08 pm #753840Wonderful, thank you so much – looks perfect!
March 3, 2017 at 7:14 am #754855Hi,
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,
RikardJanuary 19, 2021 at 10:56 am #1273623This reply has been marked as private.January 19, 2021 at 11:18 am #1273627Hey @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,
YigitJanuary 19, 2021 at 11:51 am #1273646Thank you very much for the fast response.
January 19, 2021 at 12:02 pm #1273652 -
AuthorPosts
- The topic ‘Hiding content unless user is logged in’ is closed to new replies.