ewestprocouk
Forum Replies Created
-
Forum: Plugins
In reply to: [Max Mega Menu] Menu Item Icon not visible with WooCommerceI’ve created a Storefront child theme using Plugin “Themify” but it only adds a css file in the child theme, so i copied the Storefront theme’s functions.php file and modified it to the following and it works fine:
<?php
/**
* storefront engine room
*
* @package storefront-child-theme
*/
function storefront_primary_navigation() {
wp_nav_menu( array( ‘theme_location’ => ‘primary’ ) );
}PS I had to remove the following code from the Storefront functions.php file because it caused an error e.g. repeating initialisation:
/**
* Initialize all the things.
*/
require get_template_directory() . ‘/inc/init.php’;Regards,
AlanForum: Plugins
In reply to: [Max Mega Menu] Menu Item Icon not visible with WooCommerceThanks Tom, works fine but I think I need to create a child theme to put this change in so that it doesn’t get overwritten when Storefront get upgraded.
Forum: Plugins
In reply to: [Max Mega Menu] Menu Item Icon not visible with WooCommerceAfter digging a bit deeper in this forum I find that it’s a bit of a nightmare to program MMM with conflicts with the Storefront theme.
It’s probably best to disable Menu Item Icon (e.g. get rid of the obscure graphic before the menu item) via CSS and wait until MMM find an elegant way to fix it or purchase the MMM Pro but you’ll have to add your own custom icon images.
here’s a link to a bit more info: https://ww.wp.xz.cn/support/topic/how-to-remove-icons?replies=7
and here’s the css code to remove the icon:
/* Disable the Max Mega Menu Item Icon because it doesn’t work with the Storefront theme */
#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-item a:before {
content: “”;
}