• Resolved Martin

    (@mniggemann)


    Hej Anders,

    I just started using the Björk theme — which is great as usual! — and as it is my first attempt at FSE, I was wondering about how to style the active menu items. There is no more .current-menu-item class, is there? I noticed this in other themes as well.

    I tried to add the class via the function code available here https://github.com/WordPress/gutenberg/issues/61266 but ended up with multiple .current-menu-item ‘s.

    Any idea? Of course, it could be done with pure CSS via the .page-id-xx body class, but that would be less flexible and prone to failure when there are changes on the site.

    Tack,
    -Martin

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Martin

    (@mniggemann)

    Okay, my mistake was to not use the correct blocks for menu in the editor. Once I’d used page link, category link & home page link, the current class was added.

    But … is there a way to rename the home link?

    Thread Starter Martin

    (@mniggemann)

    I’ll mark this resolved : )

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.