- This topic has 9 replies, 2 voices, and was last updated 4 years ago by
David.
-
AuthorPosts
-
March 22, 2022 at 1:48 am #2163087
Longinos
Hi
I have searched the forum not found nothing related.
Theme GP and GPP latest versions.
In the search button there is anaria-controls="primary-menu"but no element withprimary-menuid is in the page.
I see in this site that the element that contains the id in the main menu but in my uses case the main menu is in the off-canvas
Your site, visible main menu have<div id="primary-menu" class="main-nav">, my site main menu in the off-canvas have
<div class="main-nav">How I can solve this?
March 22, 2022 at 2:55 am #2163156David
StaffCustomer SupportHi there,
I am getting an Access Denied return on the URL you provided – can you ‘unlock’ that so I can take a look?
March 22, 2022 at 3:34 am #2163206Longinos
Hi David
I can´t see any 403 in the logs.
And have no recent blocks from fail2ban and not see any access from UKP.S: Maybe you have Virgin Connection? Have truobles with UK people. Unblocked now.
March 22, 2022 at 4:10 am #2163243David
StaffCustomer SupportOk – so its the menu-toggle, would changing that aria-control to the off canvas menu ID fix it? If so you can try this:
add_filter( 'generate_parse_attr', function( $attributes, $context ) { if ( 'menu-toggle' === $context ) { $attributes['aria-controls'] = 'generate-slideout-menu'; } return $attributes; }, 10, 2 );March 22, 2022 at 4:30 am #2163256Longinos
I David
Tried it but still point to primary-menu.March 22, 2022 at 4:38 am #2163259David
StaffCustomer SupportTry this:
add_action( 'wp',function(){ add_filter( 'generate_parse_attr', function( $attributes, $context ) { if ( 'menu-toggle' === $context ) { $attributes['aria-controls'] = 'generate-slideout-menu'; } return $attributes; }, 10, 2 ); });March 22, 2022 at 4:43 am #2163266Longinos
Hi David
This worked. I put this in childfunctions.phpas a workaround, but think this must be managed by the theme himself.
Maybe in the next release? =:-))March 22, 2022 at 4:45 am #2163271David
StaffCustomer SupportI have raised it as an issue – I am not sure it will make the next release though.
March 22, 2022 at 5:04 am #2163293Longinos
Hi David
Is a joke… =:-)) , do a 90 deggre turn whit = up and )) down
I know things need time to go out.March 22, 2022 at 5:09 am #2163299David
StaffCustomer Support🙂 Its on our list now.
Glad to be of help
-
AuthorPosts
- You must be logged in to reply to this topic.