HomePage › Forums › Themes Support › Poco – Fast Food Restaurant WordPress Theme › Login widget problem
- This topic has 11 replies, 2 voices, and was last updated 3 years, 11 months ago by Billy Nguyen.
-
AuthorPosts
-
November 19, 2020 at 6:38 pm #1697georgesotiroSupport Expired
Hi i have a problem that it appears on your demo too.
From the desktop when you mouse over the account appears the widget to login. When you click on the email field and you try to select the suggested email from autocomplete the login form disappears.
November 19, 2020 at 6:40 pm #1698georgesotiroSupport ExpiredThis reply has been marked as private.November 20, 2020 at 11:09 am #1724Hi there,
Please send for me your admin web account, I will check and help you.
About your issue, we will update on the next version.
November 27, 2020 at 4:38 pm #1937georgesotiroSupport Expiredhi i updated to the latest version but seems you didn’t fix the issue with the login issue
November 30, 2020 at 10:03 am #1972Hi again,
Yes, our team yet updated your issue on the latest version. Please send Admin web account for me, We will fix on your site
December 2, 2020 at 7:50 pm #2106georgesotiroSupport Expiredis possible to tell me the fix? Because another team is working on it now. Thanks
December 3, 2020 at 9:41 am #2122Hi again,
Ok, I will try to guide for you:
All code, please add into child-theme.
#Step 1: file functions.php
Add code:global $poco_version; add_action('wp_enqueue_scripts', function () { wp_enqueue_script('poco-childtheme', get_stylesheet_directory_uri() . '/custom.js', array(), $poco_version, true); }, 9999);
#Step 2: create file custom.js and add code:
( 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();
Step 3: add code into file style.css:
header-group-action .site-header-account a .account-content { display: none; } .header-group-action .site-header-account .account-dropdown.active { pointer-events: auto; opacity: 1 !important; visibility: visible; z-index: 999; } .site-header-account:hover .account-dropdown, .site-header-account:active .account-dropdown { opacity: 0 !important; } .header-group-action .site-header-account:hover .account-dropdown.active, .site-header-account:active .account-dropdown.active{ opacity: 1 !important; }
December 3, 2020 at 6:23 pm #2163georgesotiroSupport ExpiredHi 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(); });
December 4, 2020 at 4:38 pm #2186georgesotiroSupport Expiredsorry not resovled. i set it as resolved by mistake. How to fix it? Thanks
December 5, 2020 at 9:45 am #2214Hi again,
I can’t check your code, please send Admin web account for me. I will check and help you.
December 7, 2020 at 4:09 pm #2301georgesotiroSupport ExpiredThis reply has been marked as private.December 8, 2020 at 9:15 am #2319Hi again,
Please check your site, I fixed for you. -
AuthorPosts
You must be logged in to reply to this topic.