How to change the homepage menu's name?

Feed 4 posts, 2 voices

Avatar
11 posts

Hi,

I’m wondering how to go about modifying the menu name displayed for a homepage on FrogCMS? It seems to be set to ‘home’ by default’.

Any ideas?

Here is the page I’m specifically referring to is this one.

Thanks,

J

 
Avatar
1493 posts

Hi Jason:

If you’re still using the default arrangement with the navigation code in the “header” snippet, then go to that snippet (or wherever your <div id="nav"> bit lives), and look for the contents of that DIV:

  <div id="nav">
    <ul>
      <li><a<?php echo url_match('/') ? ' class="current"': ''; ?> href="<?php echo URL_PUBLIC; ?>">home</a></li>
<?php foreach($this->find('/')->children() as $menu): ?>
      <li><?php echo $menu->link($menu->title, (in_array($menu->slug, explode('/', $this->url)) ? ' class="current"': null)); ?></li>
<?php endforeach; ?> 
    </ul>
  </div> <!-- end #navigation -->

You see the word home at the end of the third line? That’s the word you want to change.

Hope that helps!

(Btw, when I viewed the source for that page, it seems the very first line of the layout has been truncated. It is missing these characters from the end: td"> You’ll want to fix that in your Layout!)

 
Avatar
11 posts

David,

Thanks A LOT for taking the time to thoroughly explain this!

All the best,

J