Home › Forums › WoodMart support forum › a problem with the widget
a problem with the widget
- This topic has 9 replies, 3 voices, and was last updated 4 years, 8 months ago by Artem Temos.
-
AuthorPosts
-
April 16, 2020 at 1:48 pm #187540
[email protected]ParticipantHello, there is a problem with the widget under the mobile menu, I added a widget with the nearest completion of auctions, not all products are displayed with images, in any other place the widget works fine
Attachments:
You must be logged in to view attached files.April 16, 2020 at 2:58 pm #187557
Elise NoromitMemberHello,
Please deactivate all the plugins not related to the theme and switch the parent theme, check the issue, if the problem remains, leave the plugins not activated and provide the site admin access to the private area
Best Regards
April 16, 2020 at 3:00 pm #187560
[email protected]ParticipantPlease, check
April 16, 2020 at 3:38 pm #187563
Elise NoromitMemberHello,
As I see this widget relates to the marketplace plugins. This plugin may be not compatible with our theme. Please contact the plugin support.
Best Regards
April 16, 2020 at 3:46 pm #187564
[email protected]ParticipantSee the marked areas for your widgets. In zone number 1, everything is working fine. There is a problem in area No. 2. I think that the market has nothing to do with it. This is a simple WooCommerce auction widget. In all other areas of your theme, the widget works great.
Attachments:
You must be logged in to view attached files.April 16, 2020 at 4:31 pm #187572
Elise NoromitMemberHello,
Please provide the site admin access as well as FTP to the private area we shall check deeper.
Best Regards
April 16, 2020 at 4:38 pm #187574
[email protected]Participantcheck
April 17, 2020 at 12:17 pm #187818
Artem TemosKeymasterTry to add the following PHP code snippet to the child theme functions.php file to fix this
function woodmart_mobile_menu() { $menu_locations = get_nav_menu_locations(); $location = apply_filters( 'woodmart_main_menu_location', 'main-menu' ); $menu_link = get_admin_url( null, 'nav-menus.php' ); $search_args = array(); $search_form = true; $settings = whb_get_settings(); $toolbar_fields = woodmart_get_opt( 'sticky_toolbar_fields' ); if( isset( $settings['search'] ) ) { $search_args['post_type'] = $settings['search']['post_type']; $search_args['ajax'] = $settings['search']['ajax']; } if( isset( $settings['burger'] ) || in_array( 'mobile', $toolbar_fields ) || in_array( 'search_args', $toolbar_fields ) ) { $mobile_categories = isset( $settings['burger']['categories_menu'] ) ? $settings['burger']['categories_menu'] : false; $search_form = isset( $settings['burger']['search_form'] ) ? $settings['burger']['search_form'] : true; $position = isset( $settings['burger']['position'] ) ? $settings['burger']['position'] : 'left'; $mobile_categories_menu = ($mobile_categories) ? $settings['burger']['menu_id'] : ''; } else { return ''; } echo '<div class="mobile-nav slide-from-' . esc_attr( $position ) . '">'; if ( $search_form ) { woodmart_search_form( $search_args ); } if( $mobile_categories ) { ?> <div class="mobile-nav-tabs"> <ul> <li class="mobile-tab-title mobile-pages-title active" data-menu="pages"><span><?php esc_html_e('Menu', 'woodmart'); ?></span></li> <li class="mobile-tab-title mobile-categories-title" data-menu="categories"><span><?php esc_html_e('Categories', 'woodmart'); ?></span></li> </ul> </div> <?php echo '<div class="mobile-menu-tab mobile-categories-menu">'; if( ! empty( $mobile_categories_menu ) ) { wp_nav_menu( array( 'menu' => $mobile_categories_menu, 'menu_class' => 'site-mobile-menu', 'walker' => new WOODMART_Mega_Menu_Walker() ) ); } else { ?> <span class="create-nav-msg"><?php esc_html_e('Set your categories menu in Theme Settings -> Header -> Menu -> Mobile menu (categories)', 'woodmart'); ?></span> <?php } echo '</div>'; } echo '<div class="mobile-menu-tab mobile-pages-menu active">'; if( isset( $menu_locations['mobile-menu'] ) && $menu_locations['mobile-menu'] != 0 ) { $location = 'mobile-menu'; } if( has_nav_menu( $location ) ) { wp_nav_menu( array( 'theme_location' => $location, 'menu_class' => 'site-mobile-menu', 'walker' => new WOODMART_Mega_Menu_Walker() ) ); } else { ?><span class="create-nav-msg"> <?php printf( wp_kses( __('Create your first <a href="%s"><strong>navigation menu here</strong></a>', 'woodmart') , array( 'a' => array( 'href' => array() ) ) ) , $menu_link); ?> </span><?php } echo '</div>'; ?> <?php if( is_active_sidebar( 'mobile-menu-widgets' ) ): ?> <?php woodmart_lazy_loading_deinit( true ); ?> <div class="widgetarea-mobile"> <?php dynamic_sidebar( 'mobile-menu-widgets' ); ?> </div> <?php woodmart_lazy_loading_init(); ?> <?php endif; echo '</div><!--END MOBILE-NAV-->'; } add_action( 'wp_footer', 'woodmart_mobile_menu', 130 );
April 17, 2020 at 12:29 pm #187840
[email protected]ParticipantGreat, it works. Thanks. There is another question, I use wcfm and a simple woocommerce auction, all products have “quick view”, “cart” and “compare”. I want only for auction items to replace the “cart” icon with the “gavel” icon, everywhere. The cart icon should be left only for simple and diverse products.
April 17, 2020 at 12:36 pm #187844
Artem TemosKeymasterHi,
Sorry, but there is no such option in our theme and WooCommerce by default. It may require additional code customization or extra plugin but we don’t have an instruction for this. It is out of our theme support scope.
Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register