Home Forums WoodMart support forum Categories Menu – doubles words after update

Categories Menu – doubles words after update

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #302389

    Soquesto
    Participant

    Hey!

    Today I updated Woodmart to the newest version 6.1.2 and now I have the problem that the shop categories menu doubles a few categories and I don’t know why.
    Can you tell me how I can change that?

    In the screenshot you see what I mean. If it helps: The word who shouldn’t be there got the HTML “TeamWear“.

    But I didn’t insert any images to categories.

    Attachments:
    You must be logged in to view attached files.
    #302397

    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

Viewing 2 posts - 1 through 2 (of 2 total)