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 9053317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T13:23:40+00:00 2026-06-16T13:23:40+00:00

in order to make the following output i used wordpress custom walker class Walker_Page_Custom

  • 0

in order to make the following output i used wordpress custom walker

class Walker_Page_Custom extends Walker_Nav_Menu {

function start_lvl(&$output, $depth) {
    $indent = str_repeat("\t", $depth);
    $output .= "\n$indent
        <div class='nav-dropdown' style='display: block; height: 1.2534674133206636px; overflow: hidden;'>
         <div class='drop-col'>
          <img id='prod' src='#' rel='#' alt='Womenswear'>
         <ul class='level0'>
         <li id='menu-item'>

    \n";
}

function end_lvl(&$output, $depth) {
    $indent = str_repeat("\t", $depth);
    $output .= "$indent
           </li>
          </ul>
          </div>
         </div>
    \n";
}

}

here is my current output

<li id="menu-item-310" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-310">
    <a href="http://localhost/wp/products-page/" class="sf-with-ul">Products Page</a>
    <div class="nav-dropdown"> <!-- first one -->
        <div class="drop-col"> <!-- first one -->
            <img id="prod" src="" rel="" alt="Womenswear">
            <ul class="level0">
                <li id="menu-item-311" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-311"><a href="http://localhost/wp/products-page/your-account/">Your Account</a></li>
                <li id="menu-item-312" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-312"><a href="http://localhost/wp/products-page/transaction-results/">Transaction Results</a></li>
                <li id="menu-item-313" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-313"><a href="http://localhost/wp/products-page/checkout/" class="sf-with-ul">Checkout<span class="sf-sub-indicator"> »</span></a>
                    <div class="nav-dropdown"><!-- second one -->
                        <div class="drop-col"><!-- second one -->
                            <img id="prod" src="#" rel="#" alt="Womenswear">
                            <ul class="level0">
                                <li id="menu-item-314" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-314"><a href="http://localhost/wp/products-page/checkout/order-received/">Order Received</a></li>
                                <li id="menu-item-315" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-315"><a href="http://localhost/wp/products-page/checkout/pay/">Checkout ? Pay</a></li>
                            </ul>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </div>
</li>

if you notice, there is <div class="nav-dropdown"> and <div class="drop-col"> inside the first <div class="nav-dropdown"> and <div class="drop-col">

so i need to change the class of the second <div class="nav-dropdown"> and <div class="drop-col"> to we can say <div class="inner-nav-down"> and <div class="inner-drop-cll"> or any other class, i don’t care

any suggests to edit this custom walker to do the job?

  • 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-16T13:23:41+00:00Added an answer on June 16, 2026 at 1:23 pm
    function start_lvl(&$output, $depth) {
        $indent = str_repeat("\t", $depth);
        $inner = $depth ? 'inner-' : '';
        $output .= "\n$indent
            <div class='".$inner."nav-dropdown' style='display: block; height: 1.2534674133206636px; overflow: hidden;'>
            <div class='".$inner."drop-col'>
            <img id='prod' src='#' rel='#' alt='Womenswear'>
            <ul class='level0'>
            <li id='menu-item'>
    
        \n";
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I used 320andup in order to make my first real responsive website. I managed
in order to make the following type of assertion create assertion assert check EMPTY
Is it possible to do following? Make git rebase --interactive to just output standard
I have 3 file as following : output-xml.php phpsqlajax_map.htm database.php In order to get
In order to make my program more streamlined (Without try and catch everywhere), I
In order to make bundle work on its own i would like to call
in order to make things easier for users i want to add multiple keyword
in order to make sure all form submission and all data submitted to server
Sometimes in order to make our application more responsive and fast, we use client
It appears that in order to make TinyMCE work with an ASP.NET AJAX website,

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.