- This topic has 9 replies, 2 voices, and was last updated 5 years ago by
David.
-
AuthorPosts
-
March 15, 2021 at 9:16 am #1696226
Sars
Dear Team,
Kindly help on this.The Offcanvas Panel and menu does not fit together on the site. When i try to add an html widget, the widget goes into second line. The hamburger icon and cart icon gets attached to the logo.
Current Look:
https://ibb.co/C8v01CZExpected look:
https://ibb.co/rbbxbKXCurrent look Breaks into separate line on mobile like this:
https://ibb.co/znxx5hpExpected on mobile:
https://ibb.co/KXXfD8yMarch 15, 2021 at 12:41 pm #1696412David
StaffCustomer SupportHi there,
instead of using the Widget area, create a new Block Element:
https://docs.generatepress.com/article/block-element-overview/
you can select Hook:
menu_bar_itemsto add the icon alongside the other menu items.March 15, 2021 at 11:19 pm #1696793Sars
Thanks David. Works very well.
Just a small question, How to give a line break to the menu items, as the menu almost touches the logo as in the below pic and also to move the hamburger icon to the right.
Thank you
March 16, 2021 at 2:27 am #1696962David
StaffCustomer SupportTry this CSS:
@media (max-width: 600px) { .has-inline-mobile-toggle .mobile-menu-control-wrapper { flex-wrap: nowrap; margin-left: unset; margin-top: 10px; flex: 1; } .main-navigation .menu-bar-items { flex: 1 0 calc(100% - 70px); justify-content: space-evenly; } .menu-toggle.secondary-menu-toggle { text-align: right; } }March 16, 2021 at 3:08 am #1697019Sars
Super. Works Very Well!
Thank you
March 16, 2021 at 4:07 am #1697076David
StaffCustomer SupportGlad to be of help
March 16, 2021 at 7:28 am #1697529Sars
Hi David,
I just noticed that when we add Items to cart, the cart menu breaks into second line.Kindly help on this.
Thanks a lot.
https://prnt.sc/10ncek8March 16, 2021 at 8:35 am #1697647David
StaffCustomer SupportThe issue is the limited amount of space for those elements on small devices.
You can do a few things to give it more room:1. Customizer > Layout > Site Header – switch to mobile view and reduce the padding to say 10px.
2. Customizer > Layout > Primary Navigation – again in Mobile view reduce the Menu Item Width
3. And then last we can add some CSS to keep the icon and the total inline:.cart-contents.shopping-cart.has-svg-icon { display: flex; align-items: center; }March 16, 2021 at 8:48 am #1697676Sars
Thanks a lot David. That solves the problem 🙂
March 16, 2021 at 8:53 am #1697684David
StaffCustomer SupportGlad to hear that
-
AuthorPosts
- You must be logged in to reply to this topic.