Forum for discussing general topics related to Couch.
2 posts Page 1 of 1
Wonder if anyone would know a solution to this issue, at the bottom of the site, the nav menu seems to be appearing for some reason, I don't get it, the nav menu is a snippet I created and added it to the snippets folder and in my includes/header.php file I got
Code: Select all
<cms: embed 'menu.html' />


my menu.html in the snippets folder looks like the following

Code: Select all
<div id="menu" >
<cms:menu masterpage='index.php' menu_class='menu_snap' />
</div>
 
  <nav id="nav" class="nav-primary" >
   <cms:menu masterpage='index.php' menu_class='sf-menu menu menu_snap' menu_id='sf-menu' />
  </nav>


I don't have it in the includes/footer.php so not sure why it is showing in the footer
UPDATE: I have solved this issue by doing the following

in includes/header.php, I did the following

Code: Select all
<!--MOBILE MENU-->
<div id="menu" >
<cms:embed 'menu.html' />
</div>


<!-- DESKTOP MENU-->
<nav id="nav" class="nav-primary" >
<cms:embed 'menu.html' />
</nav>

in snippets/menu.html, I did the following

Code: Select all
<div id="menu" >
<cms:menu masterpage='index.php' menu_class='menu_snap' />
</div>
 
  <nav id="nav" class="nav-primary" >
   <cms:menu masterpage='index.php' menu_class='sf-menu menu menu_snap' menu_id='sf-menu' />
  </nav>
2 posts Page 1 of 1