• Resolved w-sky

    (@w-sky)


    Hello, when using the Twenty Twenty-Four theme, I can edit the Pattern for the Mini-Cart with the WordPress Site editor.
    Although it is possible to freely add and move blocks, it seems to be impossible to edit the “Mini-Cart Products Table” block that is the main part of the Mini-Cart pattern.

    I would like to remove the Product short descriptions from that block. I managed to do so by hiding the class containing the short description with CSS, but this is not a good solution. Is there another way than this?

    .wc-block-components-product-metadata__description {
    display:none;
    }

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

    (@serafinnyc)

    Hello @w-sky why not just use the cart drawer instead? It’s a better UX and has a better UI

    Stef

    (@serafinnyc)

    Sorry, I should of also reiterated that the new display is called mini cart which is technically not correct. WP or WC should have noted this. I’ll let the team know. If you are wanting to hide certain things in the cart you can add a special class which will give you better control.

    Then write your CSS for each item you want to remove accordingly. For instance if you added your-selector

    .your-selector .wc-block-components-product-details,
    .your-selector .wc-block-components-product-metadata__description{
    display:none !important;
    }
    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @w-sky

    Currently, the Mini-Cart block doesn’t support direct editing of its contents. However, you’re on the right track with using CSS to hide the product’s short descriptions.

    While we understand that this may not be the ideal solution, it’s currently the most effective way to achieve what you’re looking for. The CSS you’ve used is correct and should effectively hide the product’s short descriptions from the Mini-Cart.

    However, it would be great if you added your ideas as an enhancement request on our GitHub repo here. This is where developers go to look for future plugin features and improvements.

    Thank you for your understanding and patience.

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @w-sky

    I’m marking this topic as “resolved” due to recent inactivity. If more assistance is needed, feel free to post back here or open a new topic.

    Thanks!

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