How can I eliminate remaining lines after hiding product description?

Topic summary

A user is trying to hide product descriptions for items containing ‘Parfym’ in the title using conditional Liquid code. While the description content is successfully hidden, two horizontal lines from the accordion element remain visible.

Solutions provided:

  • ZestardTech suggested adding CSS to base.css:

    .accordion {
      border: unset;
    }
    
  • Dan-From-Ryviu recommended a more specific approach:

    .accordion {
      border-top: none !important;
      border-bottom: none !important;
    }
    

Both solutions target the accordion’s border properties to remove the remaining lines. The issue was resolved after the user implemented one of these CSS fixes.

Summarized with AI on November 18. AI used: claude-sonnet-4-5-20250929.

Hi,

I use this code to hide the product description on some of my products.

{% if product.title contains 'Parfym' %}

{% endif %}

However, I cannot remove the two lines that remain from the accordion.

How can I remove these lines on products where the description has been hidden?

Please see this product as an example:

https://doftnoter.se/collections/eau-de-parfum-dam/products/parfym-damer-memo-paris-edp-inle-75-ml

url: doftnoter.se
passw: ***

Thanks!

1 Like

Hello @entranced ,

  1. In your Shopify Admin go to online store > themes > actions > edit code

  2. Find Asset > base.css and paste this at the bottom of the file:

.accordion {
    border: unset;
}

1 Like

You can remove that line by adding more this css code in your code

.accordion { border-top: none !important; border-bottom: none !important; }
1 Like

Thanks a lot!

1 Like

Happy I could help

1 Like