Your account expired support, please renew to get your support.
HomePage › Forums › Themes Support › Poco – Fast Food Restaurant WordPress Theme › Login widget problem › Reply To: Login widget problem
December 3, 2020 at 6:23 pm
#2163
georgesotiro
Support Expired
Hi i added this. Worked but when you press login button it doesnt do something.
Also i changed code to this to work
jQuery(document).ready(function ($) {
'use strict';
function account_side() {
var $account_side = $('body .header-group-action .site-header-account a');
var $account_active = $('body .header-group-action .site-header-account .account-dropdown');
$(document).mouseup(function (e) {
if ($account_side.has(e.target).length == 0 && !$account_active.is(e.target) && $account_active.has(e.target).length == 0) {
$account_active.removeClass('active');
}
});
$account_side.on('click', function (e) {
e.preventDefault();
e.stopPropagation();
$account_active.toggleClass('active');
});
}
account_side();
});