Home Forums WoodMart support forum Attribute CSS Issue

Attribute CSS Issue

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #106781

    Joe
    Participant

    Hello,

    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.
    #106806

    Hello,

    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

    #108025

    Joe
    Participant

    That’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.

    #108051

    Hello,

    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

    #108166

    Joe
    Participant

    Exactly. 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.

    #108209

    Hello,

    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

    #108228

    Joe
    Participant

    A URL is provided in the original post.

    Please note that this does not happen on mobile, it’s only on desktop.

    #108253

    Hello,

    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

    #108256

    Joe
    Participant

    That’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.
    #108334

    Hello,

    Thank you for the information. We shall consider this however we do not guarantee we shall add in in the nearest updates

    Best Regards

Viewing 10 posts - 1 through 10 (of 10 total)