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

Add variable item to nav menu

Home / Forums / Virtue Theme / Add variable item to nav menu

This topic is: Resolved
[Resolved]
Posted in: Virtue Theme
July 30, 2020 at 9:24 pm

Hi,
I’m using a cookie to record the settings of various parameters on a page.
When the user leaves the page to view something else, then returns, the cookie ensures the same parameters are set up.

I’d like to add this capability into the nav-menu. I tried a “Custom link” but that didn’t work.

The code that works fine in a button is:
<a class="kad-btn" href='[retrieve_cookie_value name="urlcookie"]'>Back</a>

How can I insert this as a menu item?
Many thanks,
Phil.

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