-
AuthorPosts
-
September 26, 2022 at 3:03 pm #1366374
Hi there
One of my clients has highlighted an issue with a site I built for them five years ago that appears on Windows machines only. I work on a Mac so can’t replicate or diagnose.
I’m using a bit of code from a previous support thread
add_filter( 'wp_nav_menu_items', 'avia_append_search_nav', 10, 2 ); function avia_append_search_nav ( $items, $args ) { if(avia_get_option('header_searchicon','header_searchicon') != "header_searchicon") return $items; if ((is_object($args) && $args->theme_location == 'avia') || (is_string($args) && $args = "fallback_menu")) { global $avia_config; ob_start(); $getform = get_search_form(false); $items .= '<li id="menu-item-search" class="noMobile menu-item menu-item-search-dropdown">'.$getform.'</li>'; } return $items; }
Can you see if you can replicate the issue and also if this code might be the cause?
Thanks
RichardSeptember 26, 2022 at 3:11 pm #1366377Hi Richard,
Thanks for contacting us!
Do they have a screencast or a screenshot where we can see the issue?
I will ask my teammates to check the website on Windows :)
Best regards,
YigitSeptember 26, 2022 at 3:12 pm #1366378Sorry yes, that would be useful. No screenshot is needed. Basically, the search field disappears once activated or hovered over.
Richard
September 26, 2022 at 7:20 pm #1366442September 28, 2022 at 11:43 am #1366691Hi there, thanks for checking. One of my colleagues on a PC using Chrome has managed to replicate the issue https://share.vidyard.com/watch/XtsKMhDs4DSBAae9oz3JUa?autoplay=1&vyetoken=5548d107-6394-4cde-ae02-3f5f6203d36f
Thanks
RichardSeptember 28, 2022 at 2:03 pm #1366712Hi,
Thanks for the video, but I tested on Windows in Chrome, Firefox, & Edge and was not able to reproduce this.
What version of Chrome are try using, I tested with v106.0.5249.62 (Official Build) (64-bit)
Do they have any extensions installed in the browser? I have none.Best regards,
MikeSeptember 28, 2022 at 4:24 pm #1366746Hey Mike, thanks for checking. They were using v105 then once updated it was OK. Not sure that helps though as ideally like the menu to be backward compatible.
Richard
September 28, 2022 at 5:07 pm #1366752Hi,
Glad to hear that it is sorted out, over the last 5 years I have not seen this issue and I primarily use Chrome, perhaps this was a bug in Chrome I can’t imagine that the issue was with the function and Chrome’s update fixed it. I don’t know of any way to roll back Chrome to other versions and I don’t think it would help because I wouldn’t know how to correct an issue with a specific browser version with css or javascript, or if it’s possible to target a specific browser version.Best regards,
MikeSeptember 29, 2022 at 10:19 am #1366866Hey Mike
Agreed and you say fixed. I may have to look at altering the search field as I can’t guarantee that all visitors will have the lastest version. Do you know and CSS that might lock it in place?
Thanks
RichardSeptember 29, 2022 at 2:02 pm #1366892Hi,
I would guess position: absolute; but I don’t know if that is the problem or if on mouse-over the browser is changing the element display from block to inline or inline-block or flex-block or list-item, or if it is something else, but that is what I would look at first.
Best regards,
MikeSeptember 30, 2022 at 10:40 am #1367068Hey Mike, OK i’ll give that a go and test on another machine that has earlier versions.
Richard
-
AuthorPosts
- You must be logged in to reply to this topic.