Search found 5 matches
- Wed Jan 30, 2019 7:28 pm
- Forum: General
- Topic: Hide static page in menu
- Replies: 6
- Views: 3600
Re: Hide static page in menu
I don't know php but i do this <?php foreach ($staticContent as $staticPage): ?> <?php if($staticPage->slug() != '404'){ ?> <li> <a href="<?php echo $staticPage->permalink() ?>"><?php echo $staticPage->title() ?></a> <?php } ?> </li><?php endforeach ?>
- Wed Jan 30, 2019 5:18 pm
- Forum: General
- Topic: Hide static page in menu
- Replies: 6
- Views: 3600
Hide static page in menu
I create static page 404, how i can hide it in menu. Thank you. <?php foreach ($staticContent as $staticPage): ?> <li> <a href="<?php echo $staticPage->permalink() ?>"><?php echo $staticPage->title() ?></a> </li> <?php endforeach ?>
- Wed Jan 30, 2019 12:39 pm
- Forum: General
- Topic: Customize 404 page.
- Replies: 10
- Views: 5877
Customize 404 page.
How to customize 404 page. Thank you.
- Tue Jan 29, 2019 7:23 pm
- Forum: General
- Topic: Add class to menu item.
- Replies: 8
- Views: 3621
Add class to menu item.
I want add class="active" to current static page.
- Tue Jan 29, 2019 7:21 pm
- Forum: General
- Topic: Check if the current page is static.
- Replies: 1
- Views: 1276
Check if the current page is static.
I want chek page is static. How can i do this?