Hi @ChrisDeBruyne,
Thanks for reaching us.
You can add that button inside the collapsed menu in two steps, first you need to make the button invisible for the Mobile devices.
Then you need to add a code that will add the button as a part of the collapsed menu. The following code is a sample code that will add a Text into the menu in the mobile device.
Just to inform you that the Mobile device has taken as a reference here.
if ( ! function_exists( 'x_button_navbar_menu_item' ) ) :
function x_button_navbar_menu_item( $items, $args )
{
if ( wp_is_mobile() )
{
if ( $args->theme_location == 'primary') {
$items.= '<li class="menu-item current-menu-parent x-menu-item x-menu-item-woocommerce">';
$items.='Your Button Code'; //replace here
$items.='</li>';
}
}
return $items;
}
add_filter( 'wp_nav_menu_items', 'x_button_navbar_menu_item', 9998, 2 );
endif;
The above code will work if copied as it is and doesn’t conflict with any existing code.
Please note that the code provided serves only as a guide to help you get started custom coding on your own if there’s no option offered in our theme or the products we bundle.
We do not provide support for custom codes that means we can’t fix it in case it conflicts with something in your site nor will we enhance it.
Hope it helps.
Thanks