Archived topic
Login / Logout Menu Item
1 reply · Started by markus on April 10, 2020
Hi, I'm successfully using the code in this support response to create a dynamically changing Login/Logout as part of the main menu. However I would like to use this in a popup. My popup plugin is YITH Easy Login & Register Popup for WooCommerce. It asks for "Enter the ID or CLASS of the element that will open the popup" and nothing I am doing is working. Can you help? Thanks
Hi there,
I think you would need to add a Hook Element: https://docs.generatepress.com/article/hooks-element-overview/
Then you'd do this in the Element:
<div class="popup-element">
Your login HTML/PHP
</div>
Then you would tell the plugin to look for this class: popup-element