Elemental clone with autonav responsive header navigation
I have read many posts regarding the responsive header navigation and still cannot figure out why it is not working on my site. Here's my site -
Here's what I've done:
I cloned the Elemental theme so the basic structure is the same. In the current state, I selected the "responsive header navigation" custom template. You can see that no styles are applied. If I selected breadcrumb from the custom template it works. These two templates live in the same place so it doesn't make sense that one works and the other doesn't. Further, if I switch the theme back to Elemental, the responsive header navigation custom template works. It's the same code. hmm.
Based on the posts I've read the documentation isn't clear. I was hoping Andrew would continue with his Urbanic theme and demonstrate how he would create a responsive nav, replacing the code that came with the template. That would be awesome! In the meantime, I'd love some help.
I'm using this site build to get up to speed on 5.7, finding my way around, etc. Right now, I am just adding a stylesheet to write over existing styles. As I spend time in the files, I can see where I can go and replace the css correctly.
The CSS for the Responsive Header Navigation custom template for the Auto-Nav block is supplied by the theme, not the template.
This is the CSS that comes with the Responsive Header Navigation template:
This is the CSS for the Responsive Header Navigation template that the Elemental theme provides:
I am apologizing upfront for what appears to be some density on my part. If I have copied the Elemental files exactly, making the appropriate path changes for the namespace, use and theme path (I can see my theme is working), then why isn't the responsive nav working? My understanding of what you are saying (and I have read many of your answers to similar posts), the header.less and the build/mobile/navigation.less styles should be applied. Right now on the site I activated the "responsive header navigation" which totally wiped out all styles, thus the bullets, but even without it I have a vertical nav, not a horizontal one.
Looking at your navigation, it has been customized and does not appear to contain the classes and elements for the CSS to work. From the structure, it doesn't appear that you are applying the custom template.
Example: Elemental with Home and About links
<div class="col-sm-5 col-xs-6"> <nav class="ccm-responsive-navigation original"> <ul> <li class="nav-selected nav-path-selected"><a href="http://localhost/concrete5/index.php" target="_self" class="nav-selected nav-path-selected">Home</a></li> <li class=""><a href="http://localhost/concrete5/index.php/about" target="_self" class="">About</a></li> </ul> </nav> <div class="ccm-responsive-menu-launch"><i></i></div> </div>
Example: your theme with Home and About links
<div class="col-sm-8 col-xs-6"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> </div> <div class="navbar-collapse collapse"> <ul class="nav"> <li class="nav-selected nav-path-selected"><a href="http://orchidconservationalliance.org/dev/index.php" target="_self" class="nav-selected nav-path-selected">Home</a></li> <li class=""><a href="http://orchidconservationalliance.org/dev/index.php/about" target="_self" class="">About</a></li> </ul> </div>