Home › Forums › WoodMart support forum › Styling mobile nav bar issue
Styling mobile nav bar issue
- This topic has 23 replies, 2 voices, and was last updated 3 months, 2 weeks ago by
Luke Nielsen.
-
AuthorPosts
-
March 19, 2025 at 3:05 am #646984
ya.predkoParticipantHello. I add in mobile custom css style for blur, size and positing of buy button
.wd-sticky-btn .wd-sticky-btn-thumbnail div.quantity .wd-entities-title.stock { display: none; } .wd-toolbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 350; display: flex; align-items: center; justify-content: space-between; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; padding: 2px; height: 38px; background-color: #ffffff75; backdrop-filter: blur(3px); box-shadow: 0 0 9px rgba(0, 0, 0, 0.12); } form.cart { display: contents; flex-wrap: wrap; gap: 10px; justify-content: var(--content-align); } .wd-sticky-btn :is(.single_add_to_cart_button,.wd-sticky-add-to-cart) { width: 50%; border-radius: 0 !important; } .wd-sticky-btn :is(.single_add_to_cart_button,.wd-sticky-add-to-cart) { width: 50%; border-radius: 0 !important; } .sticky-toolbar-on .wd-sticky-btn { bottom: 38px; } .wd-sticky-btn-on-mb .wd-sticky-btn { display: flex; } .wd-nav-mob-tab[class*="wd-style-underline"] .nav-link-text { position: static; flex: 1 1 auto; padding: 10px 5px; text-align: center; }
but its work only when i update page.
Next question: how to disable on mobile product thumb images? i use woodmart layouts
Attachments:
You must be logged in to view attached files.March 19, 2025 at 1:53 pm #647194
Luke NielsenKeymasterHello,
Before each selector add the
body
so in such a way you can make a selector heavier. https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_cascade/SpecificityAlso, make sure that you have applied the styles via Theme Settings -> Custom CSS.
2. Create a preset with such a condition – https://prnt.sc/mofUOJm_oYLn , then in its settings change the layout of the gallery – https://prnt.sc/wmtRKCbLR7Fo
Kind Regards
March 19, 2025 at 7:10 pm #647328
ya.predkoParticipanti.e i need to add body to each class, like a
<strong>body </strong>.wd-sticky-btn .wd-sticky-btn-thumbnail div.quantity .wd-entities-title.stock { display: none; } <strong>body </strong>.wd-toolbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 350; display: flex; align-items: center; justify-content: space-between; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; padding: 2px; height: 38px; background-color: #ffffff75; backdrop-filter: blur(3px); box-shadow: 0 0 9px rgba(0, 0, 0, 0.12); } <strong>body </strong>.form.cart { display: contents; flex-wrap: wrap; gap: 10px; justify-content: var(--content-align); } <strong>body </strong>.wd-sticky-btn :is(.single_add_to_cart_button,.wd-sticky-add-to-cart) { width: 50%; border-radius: 0 !important; } <strong>body </strong>.wd-sticky-btn :is(.single_add_to_cart_button,.wd-sticky-add-to-cart) { width: 50%; border-radius: 0 !important; } <strong>body </strong>.sticky-toolbar-on .wd-sticky-btn { bottom: 38px; } <strong>body </strong>.wd-sticky-btn-on-mb .wd-sticky-btn { display: flex; } <strong>body </strong>.wd-nav-mob-tab[class*="wd-style-underline"] .nav-link-text { position: static; flex: 1 1 auto; padding: 10px 5px; text-align: center; }
can u provide modified code?
March 20, 2025 at 12:14 am #647382
ya.predkoParticipant2. Create a preset with such a condition – https://prnt.sc/mofUOJm_oYLn , then in its settings change the layout of the gallery – https://prnt.sc/wmtRKCbLR7Fo
That’s don’t work
Attachments:
You must be logged in to view attached files.March 20, 2025 at 12:44 pm #647544
Luke NielsenKeymasterHello,
1. Yep, in this way –
body .form.cart
. Also, Paste the custom to the Custom CSS area in Theme Settings.2. Send access to the admin panel so I can check it.
Kind Regards
March 20, 2025 at 3:36 pm #647594
ya.predkoParticipantSend access to the admin
March 20, 2025 at 3:55 pm #647604
Luke NielsenKeymasterHello,
2. Edit the Product layout and make it as “Inherited from Theme Settings” – https://prnt.sc/MmANmjr4XFbQ
Kind Regards
-
This reply was modified 3 months, 3 weeks ago by
Luke Nielsen.
March 20, 2025 at 4:51 pm #647628
ya.predkoParticipantWhen I add body to style I have very long loading time and style issue
Attachments:
You must be logged in to view attached files.March 20, 2025 at 5:32 pm #647641
Luke NielsenKeymasterHello,
I do not see that issue – https://prnt.sc/fwcO6eUmvcMQ
Send me a link to that page and try to clear the browser cache and recheck the issue.
Kind Regards
March 20, 2025 at 5:34 pm #647643
ya.predkoParticipantI reverted to previous values.
March 20, 2025 at 5:35 pm #647644
ya.predkoParticipantYou can try to do this
March 20, 2025 at 5:52 pm #647649
Luke NielsenKeymasterHello,
Still works well, here is a screenshot from a real mobile device – https://prnt.sc/VuCT6IjIQC7k
Kind Regards
March 20, 2025 at 6:08 pm #647652March 20, 2025 at 6:18 pm #647658
Luke NielsenKeymasterHello,
Thank you for the screenshot.
This is not a bug. That happened due to the changed height of the bottom navbar –
https://prnt.sc/O7HSSZxBR--c
So to make it work right, use the code below:
body.sticky-toolbar-on .wd-sticky-btn { bottom: 38px; }
Kind Regards
-
This reply was modified 3 months, 3 weeks ago by
Luke Nielsen.
-
This reply was modified 3 months, 3 weeks ago by
Luke Nielsen.
March 20, 2025 at 10:19 pm #647713
ya.predkoParticipantIt doesn’t work as it should. on the record, the second button appears only after the page is refreshed again. Before that, the Buy button occupies the entire length of the block, it tends to occupy 50%, this is written in custom css
body form.cart {
display: contents;
flex-wrap: wrap;
gap: 10px;
justify-content: var(–content-align);
}
.wd-sticky-btn :is(.single_add_to_cart_button,.wd-sticky-add-to-cart) {
width: 50%;
border-radius: 0 !important;
}
body .wd-sticky-btn-on-mb .wd-sticky-btn {
display: flex;
}March 20, 2025 at 10:22 pm #647714March 20, 2025 at 10:22 pm #647715
ya.predkoParticipantvideo
March 20, 2025 at 10:44 pm #647716
ya.predkoParticipantCheck pls this video where simulation of iphone and android
March 21, 2025 at 5:25 pm #647973
Luke NielsenKeymasterHello,
I have added the
body
to your custom https://prnt.sc/gGlCNWmMAbIh and now it seems to work well. So clear the site/browser cache and recheck the issue.Kind Regards
March 21, 2025 at 9:30 pm #648040
ya.predkoParticipantHello! thank you, now its work perfect!)
March 21, 2025 at 9:58 pm #648045
ya.predkoParticipantBut i have one little question 🙂 How to make the add to cart buttons under the price full width, so that the first button is where it is but full width, and the second is below it? But so that the sticky buttons on mobile remain as they are now?
-
This reply was modified 3 months, 3 weeks ago by
ya.predko.
Attachments:
You must be logged in to view attached files.March 24, 2025 at 4:10 pm #648488
Luke NielsenKeymasterHello,
Apply the code below in Theme Settings -> Custom CSS -> Mobile CSS area:
.wd-single-add-cart .single_add_to_cart_button:nth-of-type(1) { width: 70%; } .wd-single-add-cart { display: flex; flex-wrap: wrap; gap: 10px; }
Kind Regards
March 26, 2025 at 2:13 am #648996
ya.predkoParticipantThanks for your work!
March 26, 2025 at 10:49 am #649061
Luke NielsenKeymasterHello,
You are welcome! If you do not mind, can you please leave a 5 stars rating for our theme by going here: http://themeforest.net/downloads It will allow us to release more updates and provide dedicated support in the future. It would encourage our work a lot.
Have a good day!
Kind Regards
-
This reply was modified 3 months, 3 weeks ago by
-
AuthorPosts
The topic ‘Styling mobile nav bar issue’ is closed to new replies.
- You must be logged in to create new topics. Login / Register