- This topic has 10 replies, 3 voices, and was last updated 5 years, 5 months ago by
Elvin.
-
AuthorPosts
-
November 9, 2020 at 3:17 pm #1524579
Matthieu
Hello, I would like to remove the menu icon on mobile, is this possible ?
Thanks
November 9, 2020 at 3:21 pm #1524580Leo
StaffCustomer SupportHi there,
Try this CSS:
.menu-toggle .gp-icon { display: none; }Adding CSS: https://docs.generatepress.com/article/adding-css/
Let me know if this helps 🙂
November 9, 2020 at 3:36 pm #1524599Matthieu
It works thanks !
I added social network icons via the Block – Hook element
generate_menu_bar_items. Is it possible to have the icons of social networks on the left of the page, keep the site logo in the center and the basket on the right ?Thanks
November 9, 2020 at 4:07 pm #1524618Elvin
StaffCustomer SupportIs it possible to have the icons of social networks on the left of the page, keep the site logo in the center and the basket on the right ?
Definitely possible:
Try this CSS:
nav#site-navigation, .menu-bar-items { width: 100%; } span.menu-bar-item.wc-menu-item { order: 2; margin-left: auto; margin-right: 20px; }November 9, 2020 at 4:15 pm #1524621Matthieu
Perfect thanks ! Is there a solution to have a different layout on mobile ?
November 9, 2020 at 4:20 pm #1524627Elvin
StaffCustomer SupportPerfect thanks ! Is there a solution to have a different layout on mobile ?
You can set different settings for mobile by using
@media (max-width:768px)rule.Example:
/* desktop and tablet */ .your-selector { [add your style for desktop here] } /* mobile */ @media (max-width:768px){ .your-selector { add your style for mobile here] } }November 9, 2020 at 4:30 pm #1524631Matthieu
The problem is that I wouldn’t know what to put to change this… 😅 Could you maybe help me?
If you reduce my page to mobile size : https://www.mmgraphik.com/ , you will see that the site logo is on the top left and the social media icons and the cart below on the same line.
I would like to know if it was possible to align the cart icons on the same line as the logo and leave the social media icons on the line below.
Thanks 😃
November 9, 2020 at 4:45 pm #1524640Elvin
StaffCustomer SupportI would like to know if it was possible to align the cart icons on the same line as the logo and leave the social media icons on the line below.
100% possible, but we may have to reduce the sizes or paddings of a few things so they fit in 1 row. 🙂
Try this CSS:
@media (max-width: 768px){ nav#mobile-header .navigation-branding .main-title { transform: translate(-50%, -50%); } nav#mobile-header .navigation-branding { position: absolute; top: 50%; left: 50%; } nav#mobile-header .inside-navigation.grid-container.grid-parent { position: relative; } nav#mobile-header a.gb-button { padding: 10px !important; } }November 9, 2020 at 4:52 pm #1524642Matthieu
Wow this is great ! Thank you so much ! 😁
November 9, 2020 at 4:52 pm #1524644Matthieu
It’s perfect ! Thanks again
November 9, 2020 at 4:54 pm #1524647Elvin
StaffCustomer SupportIt’s perfect ! Thanks again
No problem. Glad to be of any help. 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.