Current class is not applied to Nav menu item when it is WooCommerce shop page

Description:

Normal pages when viewed are given the current class in the Nav block menu item. When adding a WooCommerce shop page, this is not given the current class when the page is viewed.

Step-by-step reproduction instructions:

  1. With WooCommerce installed, add a Shop page
  2. In Appearance > Menus, create a menu containing this shop page
  3. In your templates add a Nav block containing a Nav Menu block and assign this to the menu from step 2
  4. In the front-end notice that visiting the shop page does not make the shop menu item current

Environment info

  • WordPress version: 6.3
  • Cwicly Plugin version: 1.2.9.9.3

@Araminta, just want to check whether this is reproducible for you or you need more information.

Hi @StrangeTech,

Thank you for bringing this to our attention!

I have been able to reproduce this error on my end.
We’re currently investigating this to see why the current class isn’t being applied.

Apologies for the inconvenience.

Hi,

We have fixed this issue in 1.3.0.2.
We did notice we were able to reproduce this error with the core navigation block in the core 2023 theme without Cwicly installed.

Please let us know if you are still experiencing issues once updated.

Best regards,
Johnny

Confirmed fixed in 1.3.0.2. Thank you Cwicly Team!

1 Like