Thanks mate that makes total sense now. I didn’t realise they were passed in like normal php elements in a URL, so maybe an example with multiple args is useful, but maybe this question isn’t asked very much. Great support from you guys 🙂
Thank you and happy to have helped. I hope this means it worked as expected 🙂
Thanks it works on the desktop, but not in spHeadMobile.php using the Reboot with a child theme. My code for this is below but it sends me to a page http://panorev.com/forum/logInLink instead:
sp_LogInOutButton('tagClass=spControl&mobileMenu=1&logInLink=http://panorev.com/login&logOutLink=http://panorev.com/logout', __sp('Log In'), __sp('Log Out'));
Think I just fixed that now too.
I’ve just set the mobileMenu flag to 0 and it’s working, even though the menu still displays in a drop down box which is fine. I thought setting that arg to 0 would disable the dropdown menu.
Strange, although it’s still technically inside ‘sp_MobileMenuStart’ section so it will remain in the drop down, I’m not sure why having it enabled would use the argument ‘logInLink‘ in the URL unless there was a typo in the function arguments.
Either way, glad it’s working how it should!