• Hello,
    I’m trying show the description of parent menu in submenu.

    I have something like that

    <nav>
    <ul nav-menu>
    <li><a>item 1</a></li>
    <li><a>item 2</a>
       <div class="dropdown">
       <span> $DESCRITPION_OF_ITEM_2</span>
       <ul sub-menu>
         <li>..</li>
         <li>..</li>
       <ul>
       </div>
    </ul>
    </nav>

    I need showing this variable “$DESCRITPION_OF_ITEM_2” which showing the description from menu editor in wordpress, is it possible ?

    And second question, do you know good plugins or something for adding image to menu ?

    Thank;s for response

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    You need to indicate this is PHP code and use the echo statement to send the value out to the browser, like so:
    <span> <?php echo $DESCRITPION_OF_ITEM_2; ?></span>

    Sorry, I don’t know of a plugin for menu images. I imagine it’s a matter of filtering the menu output and injecting an <img> tag. The tricky part is having each tag load the right image.

Viewing 1 replies (of 1 total)
  • The topic ‘How showing description of parrent menu on menu-list, Image in menu’ is closed to new replies.