• Hi I have created an ecommerce website using the Twenty Fourteen theme, the only problem that I now have is that the products on the various pages (categorized by brand etc) do not align when there is more characters in one product title compared to the other. The ‘Select Options’ or ‘Add to Cart’ button is the problem, if one product title was only 2 lines long compared to a product title that is 3 lines long then the ‘Select Options’ button underneath the product is not aligned with the similar buttons with the other products. The products are also far too close together for the ‘Select Option’ buttons to have spaces between, it’s not a problem for the product or titles except for the ‘Select Option’ button underneath. The buttons overlap each other, leaving some buttons saying “Select Optio” or “Select Op” before being overlapped by the next button. Also when the buttons aren’t aligned they sometimes overlap the price of the product underneath the product title. My website is not yet live but I have taken a screenshot of the problem that I was unable to upload. If anybody thinks they can fix my problem I can send a screenshot to clarify the issue.
    Thanks a lot

Viewing 15 replies - 1 through 15 (of 22 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can you link to a page with the issue?

    Thread Starter chrisfroud

    (@chrisfroud)

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    If you’re not using a Child Theme, and if the theme doesn’t have a designated section of the dashboard for CSS modifications then install this Custom CSS Manager plugin http://wordpress.org/plugins/custom-css-manager-plugin

    Then use its “CSS Code” section of the dashboard to hold your CSS modifications:

    Alternatively use your Child Theme style.css file to hold your CSS modifications:

    .twentyfourteen .product a:first-child {
        min-height: 300px;
        display: block;
    }
    
    .twentyfourteen .product a {
        white-space: normal;
    }

    Thread Starter chrisfroud

    (@chrisfroud)

    Thanks so much for your help that’s great, now that I have entered that code there is a considerable space between the product title / price and the ‘select options’ button, is there any way to maybe make the space a little smaller? Perhaps half the distance?

    Thread Starter chrisfroud

    (@chrisfroud)

    My only other problem was on the mobile version of the site, when I add something to the cart, the cart page cuts out the whole fifth column of the cart ‘Total’, leaving a portion of the right hand side of the pack blacked out compared to the cart with the white background, the ‘apply coupon’ button is also sticking half out of the white cart space and half into the blank black portion on the right hand side of the page. This problem doesn’t occur on the website when you access it via computer or laptop, just mobile as far as I know. Is there any way around this?

    Thanks again for your support it is much appreciated

    Thread Starter chrisfroud

    (@chrisfroud)

    Now that I have made those changes by entering the code into the CSS manager plugin when I click on a product my ‘gallery images’ for my product under the featured image seem to have a considerable gap underneath them now also has moved my product description around the product page.
    Would the code you gave me before have altered the space underneath the gallery images also?

    http://www.oceandesignerwear.com/shop/stone-island-button-hooded-shirt/

    You see in the above link the product description starts to the right of the featured image but there is now a gap before it continues lower down the page.
    Also the ‘Description’ and ‘Additional Information’ tabs further down the page now have a large gap under the text increasing the size of the box.

    Thanks again

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Perhaps half the distance?

    How will you know that your products won’t have longer titles?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Try this code instead:

    .tax-product_cat .twentyfourteen .product a:first-child {
        min-height: 300px;
        display: block;
    }
    
    .tax-product_cat .twentyfourteen .product a {
        white-space: normal;
    }

    Thread Starter chrisfroud

    (@chrisfroud)

    Most of the products won’t have titles that are any longer than the example ones I have up at the moment, but I see your point, it’s not doing any harm. πŸ™‚

    I have tried to remove the gallery images for the product to see if it amends the product description splitting up on the page but it has not made any difference.
    Do you know how I could tackle this?

    Thanks for your continued support

    Thread Starter chrisfroud

    (@chrisfroud)

    That second code has worked a charm. Thanks so much. It has resolved the problems on the product page.
    It is also perfect when I go on a specific brands page and resolved all the previous problems –
    http://www.oceandesignerwear.com/product-category/brands/gucci/

    The only thing is that when I go on the ‘shop’ page with all the products together the button isn’t aligned on a couple of the products, it kind of looks like it’s gone back to how it was previously, but this is only on the shop page now the categorypages, this is minor compared to my previous problem so I’d like to thank you for your help.
    http://www.oceandesignerwear.com/shop/

    If there is any way you think I could fix this last small problem then please let me know

    Thanks again

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    If you want a smaller gap, try reducing the “300” number here:

    ...
        min-height: 300px;

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Try this code instead:

    .post-type-archive-product.tax-product_cat .twentyfourteen .product a:first-child {
        min-height: 300px;
        display: block;
    }
    
    .post-type-archive-product.tax-product_cat .twentyfourteen .product a {
        white-space: normal;
    }

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Sorry that’s wrong, try this instead:

    .tax-product_cat .twentyfourteen .product a:first-child,
    .post-type-archive-product .twentyfourteen .product a:first-child {
        min-height: 300px;
        display: block;
    }
    
    .tax-product_cat .twentyfourteen .product a,
    .post-type-archive-product .twentyfourteen .product a {
        white-space: normal;
    }

    Thread Starter chrisfroud

    (@chrisfroud)

    You’re a star. That last code was perfect. Thank you so much for your help.

    Thread Starter chrisfroud

    (@chrisfroud)

    Is there any way this last code could be edited to also align the ‘Select Option’ button underneath the products on the ‘product tag’ pages ( http://www.oceandesignerwear.com/product-tag/summer/ ) and also the cart and the checkout?

    Thanks

Viewing 15 replies - 1 through 15 (of 22 total)

The topic ‘Product Placement Problem’ is closed to new replies.