• Resolved therockisnow

    (@therockisnow)


    hi there

    woocommerce is a nice ecommerce store. but the defaults have errors / bugs in them. woocommerce support are of no help to fix this.

    we see that in the cart / checkout box where the products and totals are calculate there is an unprofessional error. the product name text gets disjointed as it is spelled out over two lines. is there a way to fix this to make it look nice?

    e.g. product abcd with ni

    ce description

    instead of product abcd with nice description

    or ‘product abcd with

    nice description’

    thanks in advance

Viewing 5 replies - 1 through 5 (of 5 total)
  • “the product name text gets disjointed as it is spelled out over two lines” this sounds like a styling error and may be coming from your theme or another plugin. Please post the url to the page where this occurs so markup and styles can be examined with browser tools.

    Thread Starter therockisnow

    (@therockisnow)

    thanks for the reply. website is: bybenji.com

    you will see the bug after adding products into the cart. thanks

    Thanks, I see the issue. Words are split by what’s called the word-break style. This is coming from your theme. Its a decision your theme designer has made.

    You can overwrite this with this style:

    .product-name {
      word-break: keep-all;
    }

    This goes at
    Dashboard > Appearance > Customize > Additional CSS

    You’ll need to look round your site to see if there any unwanted side-effects, or anywhere where its still happening which would need another style.

    Hello @therockisnow

    It seems like it’s the theme default behavior,

    This can be fixed with some custom CSS. Under Customize > Additional CSS, you can add the following code:

    /* set the product name on cart and checkout page */
    .woocommerce-cart .product-name {
      word-break: keep-all;
    }
    .woocommerce-checkout .product-name {
      word-break: keep-all;
    }

    The above CSS code will only apply on the cart and checkout page.

    If you’d like to learn more about CSS, I highly recommend using the free tutorials at w3schools. Here, you can find the basics of selectors (how to target the right element on the page), and properties (how to change the element on the page).

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Since we haven’t heard from you for a while, I’m marking this as resolved. We’re always here to help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘All on one line’ is closed to new replies.