projects
/
WP-Themes
/
DarkSkiesEmmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f5af86
)
remove front page from top nav
author
Laury GvR
<laury@gaslightmedia.com>
Fri, 24 Apr 2015 20:16:19 +0000
(16:16 -0400)
committer
Laury GvR
<laury@gaslightmedia.com>
Fri, 24 Apr 2015 20:16:19 +0000
(16:16 -0400)
functions.php
patch
|
blob
|
history
diff --git
a/functions.php
b/functions.php
index
a0bda93
..
fb1124a
100644
(file)
--- a/
functions.php
+++ b/
functions.php
@@
-66,6
+66,9
@@
function glm_page_menu($parent = 0, $class = '')
echo '<ul'.(($class)?' class="'.$class.'"':'').'><!-- begin -->'."\n";
foreach ($pages as $page) {
$childs = get_pages('child_of=' . $page->ID);
+ if (is_page('Front Page')) {
+ return;
+ }
if (count($childs) > 0) {
echo '<li class="has-dropdown">'."\n";
echo '<a href="'.get_permalink($page->ID).'">'.$page->post_title.'</a>'."\n";