Hi,
is it possible to hide some toggles with Access in Avada?
I made this page hidden link
I want to add different toggles for logged-in members. I can show and hide text within the toggle, but not hide toggles as a whole.
Kind regards,
Addy
Hi Addy,
Thank you for contacting us and I'd be happy to assist.
To achieve this, you can use custom CSS code to show/hide the selective toggles for logged-in and logged-out users and then include relevant code blocks through the "toolset_access" shortcode.
( ref: https://toolset.com/course-lesson/access-control-texts-inside-page-content/ )
For example, suppose that you'd like to show the second toggle only to logged-in users and first and third to only non-logged-in users.
In that case, the custom CSS code and the "toolset_access" shortcode blocks will look like this:
[toolset_access role="Guest" operator="allow" raw="true"]
<style>
.fusion-accordian #accordion-327-1 .fusion-panel:nth-of-type(2) {
display: none;
}
</style>
[/toolset_access]
[toolset_access role="Guest" operator="deny" raw="true"]
<style>
.fusion-accordian #accordion-327-1 .fusion-panel:nth-of-type(1),
.fusion-accordian #accordion-327-1 .fusion-panel:nth-of-type(3) {
display: none;
}
</style>
[/toolset_access]
I hope this helps and please let me know if you need any further assistance around this.
regards,
Waqar
My issue is resolved now. Thank you!