WordPress.org

Ready to get started?Download WordPress

Forums

JQuery Accordion Menu Widget
[resolved] Display menu description field in menu (3 posts)

  1. i3inary
    Member
    Posted 1 year ago #

    I am looking for a way to display the menu description under the actual menu title. Any advice?

    http://wordpress.org/extend/plugins/jquery-vertical-accordion-menu/

  2. remix4
    Member
    Plugin Author

    Posted 1 year ago #

    Add a new widget are or use the shortcode. see plugin page for more details:

    http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-accordion-menu-widget/

  3. i3inary
    Member
    Posted 1 year ago #

    I think you misunderstood me. I want to show the menu "description" field under the menu "navigation label".

    I found a solution but I had to modify the plugin code:
    http://wordpress.stackexchange.com/questions/14037/menu-items-description-custom-walker-for-wp-nav-menu

    Aside from adding that custom class to my functions.php I had to modify the following files:
    dcwp_jquery_accordion.php (line 118)

    $out .= wp_nav_menu(
     					array(
     						'fallback_cb' => '',
     						'menu' => $menu,
     						'menu_class' => $menu_class,
    +						'echo' => false,
    +						'walker' => new Description_Walker
    +						)
     					);
     	$out .= '</div>';
     	return $out;
     }

    dcwp_jquery_accordion_widget.php (line 76)

    <?php
     				wp_nav_menu(
     					array(
     						'fallback_cb' => '',
     						'menu' => $nav_menu,
     						'container' => false,
    
    						'menu_class' => $classMenu,
    						'walker' => new Description_Walker
    						)
     					);
     			?>
    
     		</div>
     		<?php

    Hopefully this will help someone else.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.