How to update your custom Child themes for WPLMS 2.6

WPLMS 2.6 is out. We’ve resolved a lot of inconsistencies which arose in the header area by adding the search icon directly as a part of the menu, rather than placing it separately and then positioning it.

Unfortunately, it also means that the child themes overriding the header area also need to be updated. Now, we’ve updated the child themes but it is very much possible that you’ve created a custom header in your child theme and are reluctant to update to version 2.6.

So, we’re sharing the changes we’ve made in the header area in this article. Note, this article is only applicable to you if you’re using a customised child theme and have made changes in the header area.

 

Change 1 : Mobile Menu : 

Items_wrap has been added in the arguments for the mobile menu.

$args = apply_filters(‘wplms-mobile-menu’,array(
‘theme_location’ => ‘mobile-menu’,
‘container’ => ”,
‘items_wrap’ => ‘<div class=”mobile_icons”><a id=”mobile_searchicon”><i class=”fa fa-search”></i></a>’.( (function_exists(‘WC’)) ?'<a href=”‘.WC()->cart->get_cart_url().'”><span class=”fa fa-shopping-basket”><em>’.WC()->cart->cart_contents_count.'</em></span></a>’:”).'</div><ul id=”%1$s” class=”%2$s”>%3$s</ul>’,
‘menu_class’ => ‘sidemenu’,
‘fallback_cb’ => ‘vibe_set_menu’,
));

 

Change 2 : Main menu : 

Items wrap in the Main menu.

$args = apply_filters(‘wplms-main-menu’,array(
‘theme_location’ => ‘main-menu’,
‘container’ => ‘nav’,
‘menu_class’ => ‘menu’,
‘items_wrap’ => ‘<ul id=”%1$s” class=”%2$s”>%3$s<li><a id=”new_searchicon”><i class=”fa fa-search”></i></a></li></ul>’,
‘walker’ => new vibe_walker,
‘fallback_cb’ => ‘vibe_set_menu’
));

 

Change 3 : Removal of existing Search icon and searchdiv in header.

Leave a Reply

Your email address will not be published. Required fields are marked *