Skip Navigation

[Résolu] Access is not working at Avada Toggles

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.

This topic contains 2 réponses, has 2 voix.

Last updated by Dido Il y a 11 mois et 3 semaines.

Assigned support staff: Waqar.

Auteur
Publications
#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: Anglais (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!