Search found 4 matches
- Tue May 19, 2020 9:47 pm
- Forum: General
- Topic: Add class to menu item.
- Replies: 8
- Views: 3553
Re: Add class to menu item.
funny, it works correctly on hosting, but it doesn't work on the local server
- Tue May 19, 2020 1:39 pm
- Forum: General
- Topic: Add class to menu item.
- Replies: 8
- Views: 3553
Re: Add class to menu item.
Is there a link to the installation? http://bludit.eu5.net/ <!-- Static pages --> <?php $current_page = $_SERVER['REQUEST_URI']; foreach ($staticContent as $staticPage) : ?> <li <?php if ($current_page == '/' . $staticPage->slug()) echo 'class="current-menu-item"'; ?>> <a href="<?php...
- Tue May 19, 2020 11:34 am
- Forum: General
- Topic: Add class to menu item.
- Replies: 8
- Views: 3553
- Tue May 19, 2020 9:59 am
- Forum: General
- Topic: Add class to menu item.
- Replies: 8
- Views: 3553
Re: Add class to menu item.
I'm also looking for a solution. I downloaded the theme, but it doesn't work, class='current' does not apply to the current pageEdi wrote: ↑Tue Jan 29, 2019 7:54 pm The theme Keep It Simple gives you an example:
https://github.com/bludit-themes/keep-i ... ar.php#L29