Comments 2selinkocagoncu started the conversation1 week ago on October 6, 2024 at 11:12amHello,I would like to hide the Subscribe button found on events to be visible+usable only to logged-in users. Is there a way to make this possible?Thank you 852Zhivko replied1 week ago on October 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 2selinkocagoncu replied1 week ago on October 6, 2024 at 3:35pmThank you very much! I've just realized, would it be possible to do the same thing for the event Comments sections in STEC? 2selinkocagoncu replied1 week ago on October 7, 2024 at 2:19amOr make it calendar-specific? So I would be able to set Calendar A as a no-comment calendar, to display before log in, and set Calendar B as the inside calendar.. 2selinkocagoncu replied5 days ago on Friday at 12:51pmHello,Thank you very much, the subscribe buttons are now hidden for logged out viewers :) Could you help me do the same for Comments, please? 852Zhivko replied13 hours agoYou 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 Sign in to reply ...
Hello,
I would like to hide the Subscribe button found on events to be visible+usable only to logged-in users. Is there a way to make this possible?
Thank you
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
Thank you very much! I've just realized, would it be possible to do the same thing for the event Comments sections in STEC?
Or make it calendar-specific? So I would be able to set Calendar A as a no-comment calendar, to display before log in, and set Calendar B as the inside calendar..
Hello,
Thank you very much, the subscribe buttons are now hidden for logged out viewers :) Could you help me do the same for Comments, please?
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