- This topic has 5 replies, 3 voices, and was last updated 2 years, 1 month ago by Tom.
April 25, 2019 at 5:47 am #878994Rob
Hi this is hard to explain, but Ill try my best.
I’ve just noticed youv’e added the mini cart to the menu for Woo Commerce. Which is Great!
Thing is, I’ve used Toms PHP snippet to add it to my Secondary menu, which is located within my header.
although I don’t want it stuck to the top of the header, I want it half way, centred vertically to my logo and search bar.
Ive added a “margin-top” to the menu, but when I add/remove things to the cart, the menu moves down by a few pixels.
Is there a better way to “fix” the menu in position, and so that it doesn’t move at all?
The URL I have attached is the correct one, but I need to give you an IP to put in your hosts file on your side so you can view it, how do I do that? Is there an email i can use, I don’t want this publicly view ableGeneratePress 2.2.2GP Premium 1.8.1April 25, 2019 at 6:41 am #879066DavidStaffCustomer SupportApril 25, 2019 at 6:46 am #879070Rob
Ive sent that across using the form, thanks.April 25, 2019 at 3:09 pm #879708TomLead DeveloperLead DeveloperApril 26, 2019 at 12:58 am #880033Rob
I feel dumb, pixels worked. Why I didn’t try that I have no idea.
Thanks guys. I have a another question if you can assist?
As i have moved the cart to the secondary menu, is it possible to display the cart as it looks on the main menu?
To be more precise. When the menu is set to the default Primary menu, when on a mobile view, you get the hamburger menu on the left, and the cart on the right (separate from the actual menu). But now I have moved it to the secondary, it sits inside the mobile menu, is it possible to have it separate?
Would it be easier or possible to have it set to Secondary on Desktop and then Primary just on Mobile?April 26, 2019 at 9:20 am #880642TomLead DeveloperLead Developer
Tough one! I wonder if it’s an easy as doing this:
add_action( 'generate_inside_secondary_navigation', 'generatepress_wc_mobile_cart_link' );
Let me know 🙂
- You must be logged in to reply to this topic.