- This topic has 5 replies, 2 voices, and was last updated 3 years, 9 months ago by
Ying.
-
AuthorPosts
-
July 4, 2022 at 3:31 pm #2273174
Leonardo
Hey!
Can you help me with a CSS solution in the woocommerce cart?
On desktop and tablet is OK. But on mobile, the link to the account and cart are above each other. I wish they were next to each other. For this you will also need to reduce the size of the cart on the mobile.
Note: they were created in Widget -> Header.
I’m sending the site privately.
Thank you very much.
July 4, 2022 at 3:48 pm #2273182Ying
StaffCustomer SupportHi Leonardo,
The 2 Grid Containers are set to 100% in width on mobile by default so they can stack vertically.
Can you try setting their width to 50% for mobile?
And make sure the
vertical alignmentof theGridblock is set tocenteron mobile.July 4, 2022 at 3:59 pm #2273185Leonardo
It worked out!
Do you know how I can decrease the icon size on mobile specifically?
I have another question that came up now… In the user (next to Cart) I created an icon and a simple text “Enter or register”. However, how do I make it so that when a user logs in to the site their name and photo, if any, appear? Is there any woocommerce widget that does this automatically?
July 4, 2022 at 4:12 pm #2273190Ying
StaffCustomer SupportDo you know how I can decrease the icon size on mobile specifically?
You should be able to set different icon sizes within the
buttonblock for mobile.
For more info about GB buttons block: https://docs.generateblocks.com/article/buttons-overview/#iconBut the cart icon will need custom CSS.
However, how do I make it so that when a user logs in to the site their name and photo, if any, appear? Is there any woocommerce widget that does this automatically?
The user name should be showing after logging in, it’s Woocommerce’s default setting.
If you want to add user photo, you might need custom solution or a plugin.July 4, 2022 at 4:19 pm #2273194Leonardo
I managed to fix the size for mobile x desktop tablet using:
@media (max-width: 768px) {
.wc-block-mini-cart__button {
font-size: 12px;
}
}
@media (min-width: 769px) {
.wc-block-mini-cart__button {
font-size: 16px;
}
}I think it’s correct, right?
The user name should be showing after logging in, it’s Woocommerce’s default setting.
If you want to add user photo, you might need custom solution or a plugin.So, just that… That there I put as an icon and a simple text, and added the link to the page my account. Therefore, both the icon and the text are static.
I would like to know how do I add the page my account there as a woocommerce widget, understand?
Thank you!!!
July 4, 2022 at 4:26 pm #2273199Ying
StaffCustomer SupportI would like to know how do I add the page my account there as a woocommerce widget, understand?
Not really, I don’t understand what you mean.
Can you explain a bit more?
-
AuthorPosts
- You must be logged in to reply to this topic.