• adsler26

    (@adsler26)


    I’m trying to remove fa-angle down and a header menu item from my php, but can’t seem to find the code which controls it.

    I found the following in navwalker.php, but another part of my menu, the menu bars, are in header.php.

    if ( ! empty( $item->attr_title ) ) {
                $item_output .= '<a' . $attributes . '><span class="glyphicon ' . esc_attr( $item->attr_title ) . '"></span>&nbsp;';
            } else {
                $item_output .= '<a' . $attributes . '>';
            }
    
            $item_output .= $args->link_before . apply_filters( 'the_title', $item->title, $item->ID ) . $args->link_after;
            $item_output .= ( $args->has_children ) ? ' </a><span class="dropdown-toggle shapely-dropdown" data-toggle="dropdown"><i class="fa fa-angle-down" aria-hidden="true"></i></span>' : '</a>';
            $item_output .= $args->after;
    
            $output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args );
        }// End if().
    }

    Is there a part of this code above and here https://github.com/ColorlibHQ/shapely/blob/master/inc/class-wp-bootstrap-navwalker.php, or a part in the code of this https://github.com/ColorlibHQ/shapely/blob/master/header.php that i could remove which would let me go straight from fa-bars, to actual menu, rather than, as now, fa bars->fa-angle down and header menu item->actual menu.

    I’ve also asked the theme developers, just trying to find best solution here.

    Thanks,

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Joy

    (@joyously)

    These are not WordPress questions. You should seek answers from the authors of the code.

Viewing 1 replies (of 1 total)
  • The topic ‘How to get rid of fa-angle-down and header menu item in Shapely drop down menu’ is closed to new replies.