WordPress + Bootstrap: Replace primary navigation menu on mobile?

So, I have a site that has a main navigation bar at the top and a secondary nav in the sidebar. The secondary nav includes the same links in the main nav but with dropdowns for the child pages. It works fine on desktop but when the navs collapse, I get two navbars at the top, basically showing the same thing. So, I’m thinking, for mobile, since the sidebar nav is just a more detailed version of the main nav, I just need to replace the menu in the main nav with the menu in the sidebar then hide the sidebar.

Essentially, I need to switch the sidebar menu location for mobile with a different menu. But, I a bit stumped on how to do that.

Here’s my header.php:

    <header id="masthead" class="site-header fixed-top <?php echo wp_bootstrap_starter_bg_class(); ?>" role="banner">         <div class="container-fluid">             <nav class="navbar navbar-expand p-0 flex-column flex-md-row px-0">                 <div class="navbar-brand">                     <?php if ( get_theme_mod( 'wp_bootstrap_starter_logo' ) ): ?>                         <a href="<?php echo esc_url( home_url( '/' )); ?>">                             <img src="<?php echo esc_url(get_theme_mod( 'wp_bootstrap_starter_logo' )); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>">                         </a>                     <?php else : ?>                         <a class="site-title" href="<?php echo esc_url( home_url( '/' )); ?>"><?php esc_url(bloginfo('name')); ?></a>                     <?php endif; ?>                  </div>                 <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#main-nav" aria-controls="" aria-expanded="false" aria-label="Toggle navigation">                     <span class="navbar-toggler-icon"></span>                 </button>                   <?php                  wp_nav_menu(array(                 'theme_location'    => 'primary',                 'container'       => 'div',                 'container_id'    => 'main-nav',                 'container_class' => 'collapse navbar-collapse d-flex justify-content-end',                 'menu_id'         => false,                 'menu_class'      => 'navbar-nav',                 'depth'           => 3,                 'fallback_cb'     => 'wp_bootstrap_navwalker::fallback',                 'walker'          => new wp_bootstrap_navwalker()                 ));                 ?>             </nav>         </div>     </header><!-- #masthead --> 

Here’s my sidebar.php

<aside id="secondary" class="widget-area col-md-3 col-xl-2 sidebar" role="complementary">      <?php dynamic_sidebar( 'sidebar-1' ); ?>              <nav class="navbar sidebar-nav navbar-light">                 <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#secondary-nav" aria-controls="" aria-expanded="false" aria-label="Toggle navigation">                     <span class="navbar-toggler-icon"></span>                 </button>                                  <?php                                 wp_nav_menu(array(                                 'theme_location'    => 'sidebar',                                 'container'       => 'div',                                 'container_id'    => 'secondary-nav',                                 'container_class' => 'collapse navbar-collapse',                                 'menu_id'         => false,                                 'menu_class'      => 'navbar-nav flex-column',                                 'depth'           => 3,                                 'fallback_cb'     => 'wp_bootstrap_navwalker::fallback',                                 'walker'          => new wp_bootstrap_navwalker()                                 ));                                 ?>              </nav>  </aside><!-- #secondary --> 

Aria issues with navigation menu bar

I have a menu bar but
It seems like I had the functionalilty wrong, according to this page https://www.w3.org/TR/wai-aria-practices/examples/menubar/menubar-1/menubar-1.html

the menu bar should open with the down arrows, and navigate via up and down keys, to go to the next tab you should be pressing left or right not TAB, tab should get out of the menu itself and on to the content… how can i do this with the given code i have above. thank you

 <!DOCTYPE html> <html lang="en">...
Code (markup):

Aria issues with navigation menu bar

How can I help my players make meaningful choice during dungeon navigation?

Foreword: I run a D&D 4e campaign, but I think that this question is overall system-agnostic.

Recently I’ve somewhat shifted my D&D campagin towards a more traditional dungeon crawling style. However, a problem I’ve noticed is that when the PCs are exploring a dungeon, they have no way of choosing where to go next except by random chance. For example, if the current room has two exits, they have will have no way to choose which door to go through except by flipping a coin.

I’d like to change this, because I don’t want the players to be forced to act at random. I want the players to have enough information that they can make strategic decisions about their movement through the dungeon, but I’m just not sure how to do that.

How can I give my players hints as to what they’ll find in different dungeon paths, so that they can make logical decisions about how to explore the dungeon?

Text symbols in the navigation menu

Just faced the following issue. The problem is when I paste the font-awesome code in my navigation menu point I see the text <i class="fa fa-shopping-cart" aria-hidden="true"></i> (screenshot attached) instead of icon.

enter image description here

And I am faced with such a problem for the first time – I never faced this issue on all my previous websites. FontAwesome is successfully integrated – I can see all icons inside my website content.

I tried to:

  • deactivated my custom theme and activated WP default themes
  • deactivated all my plugins
  • cleaned cache etc
  • checked my .htaccess file

But unfortunately nothing helped.

The Importance Of Good Navigation

Navigation is possibly the most important element in web design. If users can't find their way around the site, they will leave it or will miss some important content.

A menu or list of categories should feature on the home page, with all internal pages interlinked appropriately. Users should see a link back to the home page from any part of the site.

Category names should be familiar to users and they can be listed in alphabetic order or in order of importance.

Accessibility – NVDA not reading text in navigation using arrow keys

am facing an issue with NVDA screen reader where in its not reading the links or text in a navigation.

Link – https://codepen.io/yogesharora28/pen/WNNPQKV

Am using arrow keys to navigate in NVDA, and if i move from a sub menu to next menu, for e.g. going from “home” and reading the items in its sub menu, moving next to “About us” menu, it wont read “About us”, instead reads the sub menu items of “about us” Any idea what could be going wrong?

What’s the best practice for screen navigation after invalid user input?

Consider an Angular app with many user inputs over screens A, B and C. Screen C needs valid inputs from A and B; B from A only; and A is independent. Suppose while on screen B the user enters invalid inputs.

Question: What navigation should I support for B in this case?

My current thinking is to disallow navigation to C due to data validity issues. But what about navigating back to B? On the one hand, there are no validity issues, and the user may want to look up screen A to help with screen B inputs. On the other hand, this would complicate the app’s state management. An alternative is to disallow such navigation, possibly with an option to restore the last valid inputs at B. As I lack experience in UX, I’d appreciate answers to help me with this trade-off.

Is it a norm in android apps to only have bottom navigation only on parent activities

I have checked multiple apps, and in most of them, bottom navigation is only visible on parent activities, when i go in any inner activity bottom navigation goes away, so my question is that is there any guideline regarding this available in material design, or everyone is just following this approach without any proper guideline,

and is it a right approach to have bottom navigation only on parent activities.

and in which cases we hide navigation on child activities, if not in all.

For example, i have an item in navigation Team, when user taps on it i open Team Screen, which contains 5 items, so when user further goes into these items i disable navigation, is it the correct approach?

Add button for a modal box in my navigation

I have the following navigation in my site.

enter image description here

The first 3 items are normal links to other pages in my site. The last orange link opens a modal box.

This is how I have written it in code

    <?php wp_nav_menu(['menu' => 'Main menu', "container" => "", "menu_class" => "desktop-menu"]); ?>     <a class="open-modal-registration passion-one bg-orange white" href="#">Einfach anmelden und kostenlos studieren</a> 

I have a menu that can be customized from the Control panel, and then the orange button is hardcoded.

enter image description here

Now comes my problem. I would like to be able to reorder the items in the navigation in a way that I can also reorder the orange button, and put it, lets say, between “Page #1” and “Page #2”.

To do this, I guess I would have to add it to my menu from the Control Panel, but I do not see any proper way to do this. All that can be added to the menu are

  • Custom links
  • Pages
  • Posts
  • Categories
  • Tags

And none of those elements seem the right one to define a button with such a functionality.

How could I solve this?

Home or back button as first item in navigation bar?

A bit of background:

I’m in a project where we’re building an android system service (meaning it will work regardless of which app is currently in the foreground) for an action bar that will overlay any app and contain some actions/controls. Some of the actions/controls in the bar will include e.g home, back, minimize the bar +3 more.

To my question:

What would be the most logical order for the items in the action bar?

Home feels weird to have as the first item because back is usually located in the top left corner. But having home anywhere else (even as the second item) feels misplaced in relation to the other options.

Any suggestions?

Thanks!

enter image description here