• Resolved catheg

    (@catheg)


    Hi there,

    My configuration :
    Astra,
    Elementor pro,
    woocommerce

    I would like to hide the short description of each products in the woocommerce products elements perhaps with css.

    Is it also possible to center the title, the button, the price in the middle of each box. Do I have to use the padding ?

    Thx for your help.

    Best regards.

    Catherine.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Hi @catheg!

    I would like to hide the short description of each products in the woocommerce products elements perhaps with css.

    You can use the following code snippet to hide it:

    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 );
    
    function woocommerce_template_single_excerpt() {
            return;
    }

    That is not CSS code, so you can read more about adding it to your site the correct way here:

    http://rynaldo.com/how-to-add-custom-code-to-your-woocommerce-wordpress-site-the-right-way/

    Is it also possible to center the title, the button, the price in the middle of each box. Do I have to use the padding ?

    Can you please link us to one of your products so we can take a closer look and see what CSS we can use for this?

    Cheers!

    Thread Starter catheg

    (@catheg)

    Hi @rynald0s ,

    Thx for your help.

    I’m working on a test environment for now.

    Here is an image of my products list :
    https://ibb.co/K6rG5C9

    I added your code in the functions.php of my children team, but it doesn’t work.
    The excerpt is always displayed.

    I would like to center the title, the price, the ratings, the button in the middle of the card.

    Thx.

    Cheers.

    Catherine

    Hi there,

    >I’m working on a test environment for now.
    >I would like to center the title, the price, the ratings, the button in the middle of the card.

    In order to target those items, we’ll have to be able to see the current site so we can target those elements. If you’re comfortable enough you can use a plugin like this one to target them from your end:

    https://wordpress.org/plugins/yellow-pencil-visual-theme-customizer/

    >I added your code in the functions.php of my children team, but it doesn’t work.
    The excerpt is always displayed.

    If the code above doesn’t work, please use the tool above to target that section as well and hide it with CSS.

    In case this doesn’t work out for you, please send us a link to your site and we’ll be happy to help

    Plugin Support Damianne P (a11n)

    (@drwpcom)

    Hi @catheg. We haven’t heard from you in a while so I’m going to go ahead and mark this thread as resolved. If you still need help with this issue or have any other questions about the WooCommerce plugin, please start a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Hide short description on the products elements’ is closed to new replies.