Some help with this one would be greatly appreciated.
I am trying to figure out how to use the onclick option for my Live Chat link.
I have the following code in my hook:
<?php
#adding Live Chat Menu Item to secondaryNavbar
use WHMCS\View\Menu\Item as MenuItem;
add_hook('ClientAreaSecondaryNavbar', 1, function (MenuItem $secondaryNavbar)
{
$secondaryNavbar->addChild('Live Chat')
->setUri('#chat onclick="toggleChat()"')
->setOrder(10);
});
I have tried other ways, but can't seem to get the onclick to set. My goal is to have the live chat pop up on click.