Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Custom theme sub sub menu doubles up

$
0
0

Replies: 1

This theme was customized by someone who started on an HTML5 blank template some time ago. We have been called on to add sub sub menus. IE the main menu says “ISSUES” the sub will say “HEALTHY SOILS” and then have sub menu items under it. The dropdown when you click that Issues area is like a big banner across with the menu items listed in columns. Unfortunately when we add anything to a submenu to an item already listed in the columns, it repeats this entire dropdown big banner area under the first one, instead of placing it in that original area indented beneath it’s parent.

I haven’t found any code to compare it too, since it was a custom site. The code right now says: `class Sublevel_Walker extends Walker_Nav_Menu
{

function start_lvl( &$output, $depth = 0, $args = array() ) {
$indent = str_repeat(“\t”, $depth);
$output .= “\n$indent<div class=’drop’><div class=’wrap’><div class=’one’><h3 class=’hx’></h3><ul class=’sub-menu’>\n”;
}’

Does anyone know how to modify this code to work with the sub sub menu without repeating itself?


Viewing all articles
Browse latest Browse all 59525

Trending Articles