[Resolved] Woocommerce title length and positioning

Home Forums Support [Resolved] Woocommerce title length and positioning

Home Forums Support Woocommerce title length and positioning

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1464487
    roadlink

    Hello,
    I want to limit product title length with 2 rows. How i can do that?
    I also want to make all product aligned. Found below code and it is working great for category pages.
    But it doesn’t work in the main page. How to fix it?

    .woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product h3 {
    	overflow: hidden;
    	text-overflow: ellipsis;
    	white-space: nowrap;
    }
    #1464568
    Leo
    Staff
    Customer Support
    #1464757
    roadlink

    thank you 🙂

    #1464990
    roadlink

    Hi Leo,

    That is weird that it doesn’t work on main page.
    Which I created blocks with regular woocommerce blocks.

    #1465024
    David
    Staff
    Customer Support

    Hi there,

    WOO blocks doesn’t use the standard Woo templates – so would require different CSS. Do you have a link so i can confirm what CSS is required ?

    #1465056
    roadlink

    Sure, here you go.
    Btw, which blocks do you advice?
    I want to have simpliest and fastest solution.
    If these blocks use different style, will it means additional codes?

    #1465107
    David
    Staff
    Customer Support

    Woo Blocks is about the only option if you want to add WYSIWYG content in the editor.
    Alternative is to not use the Blocks, instead use the built in Woocommerce shortcodes – then that code you have should apply.

    If you want to continue using blocks then update the CSS to this:

    .woocommerce ul.products li.product .woocommerce-loop-product__title, 
    .woocommerce ul.products li.product h3,
    .wc-block-grid__product .wc-block-grid__product-title {
    	overflow: hidden;
    	text-overflow: ellipsis;
    	white-space: nowrap;
    }
    #1465118
    roadlink

    Thanks, I will use woocommerce shortcodes then.

    #1465149
    David
    Staff
    Customer Support

    You’re welcome

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.