Nav Menu: Theme Location not working

I’m guessing your menu contains only Pages (posts of the page type) on your site? But nonetheless, with wp_nav_menu(), if you specify a theme_location that doesn’t exist or contains no menu (i.e. no menus assigned to that location), then the fallback_cb arg (which defaults to wp_page_menu()) will determine what is displayed. So if you want … Read more

dynamic php menu with hidden sub-categories only showing when the category name is clicked

well, I went for a different approach, in this case with radiobuttons. It is working and it is 95% the result desired. <?php $cats = array(array(‘first’, ‘sub-first’, ‘sub-sub-first’), array(‘second’, ‘sub-second’), array(‘third’, ‘sub-third’, ‘sub-sub-third’)); ?> <label>Categorias</label> <?php foreach($cats as $cat): if (isset($cat[0])): ?> <div class=”div1″> <input type=”radio” id=”<?php echo $cat[0] ?>” name=”age” value=”30″> <label for=”<?php echo … Read more

Bootstrap Menu bar shows up a toggle in Desktop Mode

If you want to hide elements based on breakpoints ( screen widths ) – you can use the display classes of BootStrap 4 – this might be different if you use an older version of BS. https://getbootstrap.com/docs/4.0/utilities/display/ A simple example of a class name to hide an element on desktop would be: <div class=”d-sm-none”>HIDDEN ON … Read more

Hiding menu on specific pages

You would need to use the page id’d and the class of top menu wrapper those specific pages where you want to hide the and the class of top menu wrapper, as follows : .page-id-99 .top-menu-wrapper { display : none; } Please change the 99 to the page id and top menu class according to … Read more