Home › Forums › WoodMart support forum › Menu issues on mobile with new categories › Reply To: Menu issues on mobile with new categories
June 25, 2021 at 8:51 am
#302373
Artem Temos
Keymaster
Hello,
It seems to be a bug in our theme with mobile categories only. Tyr to edit the file wp-content/themes/woodmart/inc/functions.php
and replace the following code
$image_output .= '<img src="' . esc_url( $icon_data ) . '" alt="' . esc_attr( $item->title ) . '" ' . $icon_attrs . ' class="wd-nav-img' . woodmart_get_old_classes( ' category-icon' ) . '" />';
with this one
if ( $icon_data ) {
$image_output .= '<img src="' . esc_url( $icon_data ) . '" alt="' . esc_attr( $item->title ) . '" ' . $icon_attrs . ' class="wd-nav-img' . woodmart_get_old_classes( ' category-icon' ) . '" />';
}
Kind Regards