Archived topic
Trying to conditionally change text of off-canvas-toggle-label
3 replies · Started by Randy on January 6, 2021
I'd like to know which php function to use to change the text in the off-canvas-toggle-label conditionally (I am using a php $_GET(myparam) to know when I want to toggle the menu to an alternate text).
Basically, the off-canvas-toggle-label will say "Sign In" when you're not signed in and I want it to say "Sign Out" when you are already signed in (I'm not using wordpress for sign in...I'm using Sign In with Google, so I can't use a trigger based on wordpress sign in state).
So basically, what php filter can I use to grab the text in the off-canvas-toggle-label and change it?
Thank you :)
Hi there,
Are you referring to the desktop toggle label option?
If so something like this should help:
https://generatepress.com/forums/topic/off-canvas-menu-need-in-spanish-for-spanish-site/#post-1387150
Beautiful! That worked :)
No problem :)