Skip Navigation

[Resolved] Access is not working at Avada Toggles

This support ticket is created 3 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by Dido 3 years, 8 months ago.

Assisted by: Waqar.

Author
Posts
#1727169

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

#1727881

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

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

#1728215

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.