Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8581693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:06:51+00:00 2026-06-11T21:06:51+00:00

I have the function below for my WordPress menu but every time I add

  • 0

I have the function below for my WordPress menu but every time I add a sub-menu, it doesn’t show as it’s supposed to.

register_nav_menus( array(
    'primary' => __( 'primary-menu', 'Primary Menu' ),
) );
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T21:06:52+00:00Added an answer on June 11, 2026 at 9:06 pm

    Hard to say what’s wrong without seeing more code or a site URL. But check your menu call in functions.php and in the template file (such as header.php) and the minimum css in the style sheet.

    No reason to use Superfish within WordPress; WordPress 3+ menus are pure css and don’t depend on javascript, and Superfish hasn’t been updated in four years.

    These are the basic functions and css from twentyeleven; use them as a basis for your own code.

    functons.php :

    register_nav_menu( 'primary', __( 'Primary Menu', 'twentyeleven' ) );
    

    header.php :

    <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
    

    style.css :

    #access {
        background: #222; /* Show a solid color for older browsers */
        background: -moz-linear-gradient(#252525, #0a0a0a);
        background: -o-linear-gradient(#252525, #0a0a0a);
        background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#252525), to(#0a0a0a)); /* older webkit syntax */
        background: -webkit-linear-gradient(#252525, #0a0a0a);
        -webkit-box-shadow: rgba(0, 0, 0, 0.4) 0px 1px 2px;
        -moz-box-shadow: rgba(0, 0, 0, 0.4) 0px 1px 2px;
        box-shadow: rgba(0, 0, 0, 0.4) 0px 1px 2px;
        clear: both;
        display: block;
        float: left;
        margin: 0 auto 6px;
        width: 100%;
    }
    #access ul {
        font-size: 13px;
        list-style: none;
        margin: 0 0 0 -0.8125em;
        padding-left: 0;
    }
    #access li {
        float: left;
        position: relative;
    }
    #access a {
        color: #eee;
        display: block;
        line-height: 3.333em;
        padding: 0 1.2125em;
        text-decoration: none;
    }
    #access ul ul {
        -moz-box-shadow: 0 3px 3px rgba(0,0,0,0.2);
        -webkit-box-shadow: 0 3px 3px rgba(0,0,0,0.2);
        box-shadow: 0 3px 3px rgba(0,0,0,0.2);
        display: none;
        float: left;
        margin: 0;
        position: absolute;
        top: 3.333em;
        left: 0;
        width: 188px;
        z-index: 99999;
    }
    #access ul ul ul {
        left: 100%;
        top: 0;
    }
    #access ul ul a {
        background: #f9f9f9;
        border-bottom: 1px dotted #ddd;
        color: #444;
        font-size: 13px;
        font-weight: normal;
        height: auto;
        line-height: 1.4em;
        padding: 10px 10px;
        width: 168px;
    }
    #access li:hover > a,
    #access ul ul :hover > a,
    #access a:focus {
        background: #efefef;
    }
    #access li:hover > a,
    #access a:focus {
        background: #f9f9f9; /* Show a solid color for older browsers */
        background: -moz-linear-gradient(#f9f9f9, #e5e5e5);
        background: -o-linear-gradient(#f9f9f9, #e5e5e5);
        background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#f9f9f9), to(#e5e5e5)); /* Older webkit syntax */
        background: -webkit-linear-gradient(#f9f9f9, #e5e5e5);
        color: #373737;
    }
    #access ul li:hover > ul {
        display: block;
    }
    #access .current-menu-item > a,
    #access .current-menu-ancestor > a,
    #access .current_page_item > a,
    #access .current_page_ancestor > a {
        font-weight: bold;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to get the WordPress menu inline and below my side
I have the function below. It gets the values from checked boxes and transfer
let say i have function like below function doSomethingNow(){ callSomethingInFutureNotExistNow(); } at the moment
I have written a function below: void trans(double x,double y,double theta,double m,double n) {
I have the following function below: public function setupHead($title){ $displayHead .='<!DOCTYPE html PUBLIC -//W3C//DTD
I have an example function below that reads in a date as a string
I have a function as below extern C int FuncTrace(const char *fmt, ...) {
I have a problem using the string function erase with iterators. The function below
I decided to have a go at PDO. The function below should move a
I have a function(please see code below) which reads some data from the web.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.