WP Menu Cart Next To Navigation Search On Mobile Devices
-
About a year or 2 ago, we tried the following filter to postion the mini cart on mobile devices:
add_action( ‘generate_inside_mobile_menu_bar’,’tu_add_to_mobile_bar’ ); function tu_add_to_mobile_bar() { ?> <div class=”mobile-cart”> <?php echo do_shortcode( ‘[your-shortcode]’ ); ?> </div> <?php }
With the following CSS:
.mobile-cart { float: right; }
This set the position for the WP Menu Cart. All we had to do, was create a shortcode for the WP Menu Cart plugin.
We left this for a while, and have now come back to this, and the filter and CSS don’t appear to work anymore, whereas they did a year or two ago.
Just wanted to know if anything has changed on the GeneratePress free theme, which would involve the need for the above code to be updated?
If so, would anyone know how to adjust the above code for this to work?
Kind Regards,
Andrew
- The topic ‘WP Menu Cart Next To Navigation Search On Mobile Devices’ is closed to new replies.