Okay
  Public Ticket #2638395
Mega main menu issue in dynamic_style.php
Closed

Comments

  • Bart Cornelis started the conversation

    Dear,

    I did update to the latest version of the Woocommerce Dove template (https://themeforest.net/item/dove-handmade-furniture-responsive-woocommerce-wordpress-theme/20331931) but there's still issues with the mega main menu concerning styling.

    When checking the code (plugins/mega_main_menu/extensions/mega_main_menu/handler.php) It shows the following line:

    $items_wrap .= mm_common::ntab(0) . '<div id="' . $theme_location_safe_name . '" class="mega_main_menu ' . $container_class_imploded . ' mega_main">';

    This will generate an id like 'primary' and will add 'mega_main_menu' as a class.

    Then when you check the dynamic_style.php file, it's showing a lot of those entries:

    #mega_main_menu.primary

    (not in my website, I've been doing some modifications) but in the download you provide, that's the case. But this selector means 'an element with id=mega_main_menu and a class=primary. So This can't work right? That's the reason why 'lots' of the styling is not properly applied to the mega-main-menu.

    How to solve this? Shouldn't you fix the dynamic_style.php file to match this mega-main-menu setup so all those selectors (font, color, ...) are applied again?

    Thanks!

  •  2,636
    Kevin replied

    Hi Bart Cornelis

    Please replace "#mega_main_menu" to ".mega_main_menu" to solve the problems.

    Thanks