Home › Forums › WoodMart support forum › Attribute CSS Issue
Attribute CSS Issue
- This topic has 9 replies, 2 voices, and was last updated 6 years, 5 months ago by
Elise Noromit.
-
AuthorPosts
-
February 10, 2019 at 1:12 am #106781
JoeParticipantHello,
I believe I have found a CSS bug. On the single product page, I have an attribute which is set to replace the dropdown with buttons.
This works fine, but the “Clear” button that appears below the attributes messes up the spacing. See the attached images.
It just needs some padding, or even better, the Clear button should be in it’s own row, so it doesn’t influence the height of the attribute button row.
You can see this in person at https://parisbloom.com/product/rose-collection-fall-2019/sofia/
Attachments:
You must be logged in to view attached files.February 10, 2019 at 9:47 am #106806
Elise NoromitMemberHello,
Navigate to the Theme Settings > Product page > Images and set “Large” or “Medium” http://prntscr.com/mj2m58
There is no but, you have set “Small” at the same time there is too little space for your attribute.
Best Regards
February 17, 2019 at 8:21 pm #108025
JoeParticipantThat’s no solution…
As you can see, my attributes fit fine. The clear button on the same line as the attributes is what is causing this issue.
There are plenty of cases where having many attributes could cause this. yes, in this one particular case changing the width from small to large would fix it, but a better solution that would work no matter what would be to have the clear button separate so this is NEVER an issue.
Thank you.
February 18, 2019 at 6:48 am #108051
Elise NoromitMemberHello,
What do you mean “clear button separate”? Where do you want the clear button to be? If you have a few attributes it will be in one line on the right, if you have a lot of attributes it will be just after the last attribute or below. There is no option to change this.
Best Regards
February 18, 2019 at 1:05 pm #108166
JoeParticipantExactly. The clear button needs to be on its own row. The display issue in my original post is because it’s on the same row as my attributes. Changing the size of the text area doesn’t help because with more attributes or a smaller screen, you’ll still run into that issue at some point.
Clear should be by itself below all the attributes. That would prevent this issue.
That’s what I’m asking.
February 18, 2019 at 4:24 pm #108209
Elise NoromitMemberHello,
Please provide product URL with a lot of attribute items and the clear button in one row so that I could provide you with custom CSS.
Best Regards
February 18, 2019 at 5:18 pm #108228
JoeParticipantA URL is provided in the original post.
Please note that this does not happen on mobile, it’s only on desktop.
February 18, 2019 at 8:11 pm #108253
Elise NoromitMemberHello,
Please try this code:
body .summary-inner .variations_form .variations .reset_variations { display: block!important; }
Add the code to the Theme settings > Custom CSS > Global
Best Regards
February 18, 2019 at 8:23 pm #108256
JoeParticipantThat’s not going to do it because it will still make the attributes not look correct.
What I’m saying is the attributes should line up with the attribute label. See the attached screenshot.
The mobile version of the site has position:absolute and bottom:-30px to fix this issue. It looks fine on mobile.
I’ve added the following CSS. Will you add this to the next update? It functions well whether or not the attributes are on a single line or wrap. It extends the bottom margin of the variation div, then offsets the clear button to the bottom so it’s out of the way. You can see the results in the second screenshot.
.product-image-summary .variations { margin-bottom:50px; } .variations_form .reset_variations { position: absolute; bottom: -30px; left: 0px; }
Attachments:
You must be logged in to view attached files.February 19, 2019 at 9:42 am #108334
Elise NoromitMemberHello,
Thank you for the information. We shall consider this however we do not guarantee we shall add in in the nearest updates
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register