Search found 5 matches

by xanmean
Wed Jan 30, 2019 7:28 pm
Forum: General
Topic: Hide static page in menu
Replies: 6
Views: 1159

Re: Hide static page in menu

I don't know php but i do this

Code: Select all

<?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 ?>
by xanmean
Wed Jan 30, 2019 5:18 pm
Forum: General
Topic: Hide static page in menu
Replies: 6
Views: 1159

Hide static page in menu

I create static page 404, how i can hide it in menu. Thank you.

Code: Select all

<?php foreach ($staticContent as $staticPage): ?>
	<li>
	<a href="<?php echo $staticPage->permalink() ?>"><?php echo $staticPage->title() ?></a>
	</li>
<?php endforeach ?>
by xanmean
Wed Jan 30, 2019 12:39 pm
Forum: General
Topic: Customize 404 page.
Replies: 10
Views: 1510

Customize 404 page.

How to customize 404 page. Thank you.
by xanmean
Tue Jan 29, 2019 7:23 pm
Forum: General
Topic: Add class to menu item.
Replies: 8
Views: 927

Add class to menu item.

I want add class="active" to current static page.
by xanmean
Tue Jan 29, 2019 7:21 pm
Forum: General
Topic: Check if the current page is static.
Replies: 1
Views: 356

Check if the current page is static.

I want chek page is static. How can i do this?