Comments selinkocagoncu started the conversation 894Zhivko repliedOctober 6, 2024 at 1:35pmHi, 1) Open your event template with the builder. 2) Insert "Custom JS" element in the template. You can place it somewhere at the bottom. 3) Open the Custom JS element settings by clicking on the cogwheel icon. 4) In the JavaScript textarea place the following javascript code: (function () { const userId = STEC_VARIABLES?.current_user?.data?.id; if (!userId) { const elementToHide = document.querySelector('.stec-event-share-and-export-subscribe'); if (elementToHide) { elementToHide.style.display = 'none'; } } })(); Stachethemes Developer selinkocagoncu replied privately selinkocagoncu replied privately selinkocagoncu replied privately 894Zhivko repliedOctober 15, 2024 at 11:18amYou can do it via the template builder. Open your template. Click on the Row Section that wraps the Comments: Click on the cogwheel button to enter its settings. In the Conditions selector add: "Logged-in": Stachethemes Developer1 Like 6selinkocagoncu repliedOctober 16, 2024 at 9:06pmThat is perfect! Thank you very much!1 Like selinkocagoncu replied privately 894Zhivko repliedNovember 4, 2024 at 4:14pmAre you sure it's not old cache on your mobile device? The elements share same class name both for desktop and mobile. It doesn't make sense to show on one and be hidden on another. Where can I see this issue? Stachethemes Developer selinkocagoncu replied privately 894Zhivko repliedNovember 5, 2024 at 10:29pmTry different approach. Remove the custom js code I've sent you earlier and instead place two row sections with logged-in and not logged-in conditions. I'm attaching you a video of what I mean.Attached files: Example.mp4 Stachethemes Developer1 Like 6selinkocagoncu repliedNovember 18, 2024 at 3:06pmIt appears to be solved; thank you very much!1 Like Sign in to reply ...
Hi,
1) Open your event template with the builder.
2) Insert "Custom JS" element in the template. You can place it somewhere at the bottom.
3) Open the Custom JS element settings by clicking on the cogwheel icon.
4) In the JavaScript textarea place the following javascript code:
Stachethemes Developer
You can do it via the template builder.
Open your template.
Click on the Row Section that wraps the Comments:
Click on the cogwheel button to enter its settings.
In the Conditions selector add: "Logged-in":
Stachethemes Developer
That is perfect! Thank you very much!
Are you sure it's not old cache on your mobile device?
The elements share same class name both for desktop and mobile. It doesn't make sense to show on one and be hidden on another.
Where can I see this issue?
Stachethemes Developer
Try different approach.
Remove the custom js code I've sent you earlier and instead place two row sections with logged-in and not logged-in conditions. I'm attaching you a video of what I mean.
Attached files: Example.mp4
Stachethemes Developer
It appears to be solved; thank you very much!