I’m not quite sure if this is a bug or if I’m just misunderstanding the function. I’m building a menu with the new nav block and I want to highlight the current page.
To my understanding this should be achievable under styles > nav links > current page. But nothing happens if I change the styles there.
Sorry to hear you’re experiencing trouble with this.
Unfortunately, I haven’t been able to reproduce this error on my end.
As I don’t have enough information on your setup, I cannot determine what might be going wrong.
Could you possibly confirm you are on the latest version?
Additionally, do the styles not apply in the editor or on the frontend?
Mhh, I’ve tested in on two sites. Both have the newest cwicly version. One site has woocommerce installed, the other only cwicly. I also regenerated html/css.
The styles don’t apply on backend and frontend. If I inspect the html code on the frontend, there’s no “current” class or something similar applied to the menu link of the current page. Otherwise I would easily do it with relative styling.
One is a custom link to a page. If I seach for that page (or any other page), it doesn’t appear in the post selector of the URL input field. Only posts show up.
The other nav link is a dynamic link to the home page.
For test purposes I selected one of the posts that I can choose from in the post selector. Then the styles apply.
It works for the static links. The dynamic homepage link doesn’t change. If I change it to a static homepage link, the current styles get applied.
I found the reason why only posts and no pages were shown in the url input field: I used a php code snippet to limit the wordpress search to posts. This also affected the URL search in the backend.