When the carve job is finished, I will share a powerful tutorial (using your help / replies) on this beautiful discourse board (GG FTL). I really like rootstheme and want to be part of this growing community. It would be an honor to produce tutorials.
I definitely appreciate the references and break down of sections, but it seems like a lot of the questions you’re asking are just about Bootstrap markup.
Obviously Roots uses Bootstrap, but we’re trying to keep these topics Roots centric rather than general Bootstrap or WordPress. There are much better places (such as Stack Overflow) to ask the more general questions.
One thing I would say is Section D should take advantage of the Roots Bootstrap Walker and WordPress Menus. You just need to create a secondary navigation menu and change the classes when the menu is called:
Hi Foxaii, in which file do I put that Walker code to add those classes to my sidebar menus?
Or, more specifically - I added a secondary sidebar menu to my theme as “Sidebar Menu” in the menu manager, then dropped a menu widget in the Primary widget area.
How can I use the Walker method to add those classes to the sidebar menu only? Or am I doing it wrong, and the best practice would be to add a secondary menu theme “Location” somewhere/somehow in my config.php? Would you kindly explain the best practice for adding a secondary navigation, and css classes to that secondary nav.
Hello! I would like to learn Roots Themes.
I also do not get a second menu, do everything as described above. Tell me please.
In lib / init.fp
register_nav_menus (array (
‘primary_navigation’ => __ (‘Primary Navigation’, ‘roots’),
‘secondary_navigation’ => __ (‘Secondary Navigation’, ‘roots’),
)) e
In base.fp