Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Login modal on custom menu link

Home / Forums / Ascend Theme / Login modal on custom menu link

This topic is: Resolved
[Resolved]
Posted in: Ascend Theme
September 27, 2020 at 6:49 am

I’m trying to make use of the built-in login/register modal by including the relevant CSS class and data attribute on the menu item I’m targeting. Adding the CSS class is easy, I can do that from the menu’s page and add 'kt-pop-modal'. I obviously need to also add the data-mfp-src="#kt-extras-modal-login" attribute which I’m trying to do with the nav_menu_link_attributes filter, but it seems to not be filtering my mobile menu at all. The only menu that is showing up if I dump the variable is main-menu.

I realise the functionality already exists in Ascend theme to have the dropdown mobile menu etc but for my purposes I can’t fit anymore than the cart icon and the mobile menu with the logo at its required size in the mobile header.

  • The forum ‘Ascend Theme’ is closed to new topics and replies.