Pages that are not automatically added to the menu

Post Reply
Cryss
Ssr. Bludit
Posts: 18
Joined: Thu Dec 31, 2015 6:34 pm
Location: Germany
Contact:

Hi,

how can I prevent a page from being added to the menu automatically? I want to add "Site notice" and "Disclaimer" and the e.g. bottom of the page.


Chris
User avatar
diego
Site Admin
Posts: 773
Joined: Sat May 16, 2015 2:53 pm
Been thanked: 1 time
Contact:

mm you will need edit the theme, what theme are you using ?
Cryss
Ssr. Bludit
Posts: 18
Joined: Thu Dec 31, 2015 6:34 pm
Location: Germany
Contact:

Business Casual at the moment.

For displaying theses pages I need to edit the specific theme, right? "Flagging" pages as "hidden" would need a change in the bludit code, wouldn't it?

Chris
kaaleth
Master Bludit
Posts: 117
Joined: Sun Jun 14, 2015 9:55 am

To display pages you should use

Code: Select all

				<?php
					$parents = $pagesParents[NO_PARENT_CHAR];
					foreach($parents as $Parent) {
						echo '<li class="nav-item"><a class="pure-button pure-button-primary" href="'.$Parent->permalink().'">'.$Parent->title().'</a></li> ';
					}
				?>
This become from my theme so you have to edit some html classes inside ECHO.
Cryss
Ssr. Bludit
Posts: 18
Joined: Thu Dec 31, 2015 6:34 pm
Location: Germany
Contact:

Thank you!
Post Reply