How to change the color of the background of an FAQ question section when hover with the mouse?

Topic summary

A Shopify store owner seeks to customize their FAQ section’s hover effects to match a reference website (velthentic.com), specifically wanting a darker background hover state and a black circular background on the arrow icon.

Key Requirements:

  • Gray background for entire FAQ section
  • Bold question text
  • Black circular background on arrow icon when hovering (without changing question background color)
  • Reduced spacing between elements
  • Semi-bold font weight for questions
  • Line separators instead of bordered boxes

Solution Provided:
Multiple CSS snippets were shared to achieve the desired effects, primarily targeting .faq-item, .faq-list, and .faq-question:hover .faq-icon classes. The final working code includes:

  • Gray background (#f2f2f2) for FAQ list
  • Black circular hover effect on arrow icons
  • Border-bottom separators instead of full borders
  • Font-weight adjustments (600 for semi-bold)
  • Padding modifications

Implementation Location:
CSS should be added to either theme.css file or through Themes → Customize → Custom CSS section.

Current Status:
The user confirmed the solution works but expressed concerns about the overall design appearance. The conversation remains ongoing as they seek to further refine the FAQ section styling to more closely match their reference example.

Summarized with AI on October 24. AI used: claude-sonnet-4-5-20250929.

How to change the color of the background of an FAQ question section when hover with the mouse?
I already have this effect but is too light. I want to make more noticeble by making it more dark Or to add a very black circle on the arrow when hover with the mouse. Like this website did: High Waist Denim Balloon Jeans

This is my website. And the liquid of the FAQ section is named: faq-accordation.liquid

Hi @Jim3,

I checked and did you solve it?

1 Like

Hi @Jim3 ,
Go to Online Store > Themes > Actions > Edit Code > base.css Add below code at the bottom of base.css file

.faq-section button.faq-question:hover {
    background: #b5b5a0 !important;
}
1 Like

Hi @Jim3 Merchant
Please add below css in base.css:

#shopify-section-template–24619532353864__faq_accordion_cRUEqc .faq-question:hover {
background-color: #b0b0b0;
}

.faq-item .faq-icon:hover {
transform: rotate(180deg);
background: black;
border-radius: 50px;
color: #fff;

And it will show like below screenshot:

1 Like

also add below css:
.faq-question:hover .faq-icon{
background: black;
border-radius: 50px;
color: #fff;
}

1 Like

Hello, to everyone who texted and thank you! Actually some things worked but I want to make a slightly different design of this section. So basically as the store velthentic.com it has this FAQ section I want mine. I am attaching a picture of it bellow. Whats the difference with mine is that there is grey background color behind all the faqs and makes the section visible. I want that too + the Bold letters of the question + the way when we are over the question the arrow on the side turns black. How to create that FAQ’s section please?

Please update the css to below:

.faq-list {
display: flex;
flex-direction: column;
gap: 16px;
background: #ddd;
border: none;
}
.faq-question:hover .faq-icon {
display: flex;
flex-direction: column;
gap: 16px;
background: #000;
border-radius: 100px;
color: #fff;
}

.faq-question:hover {
background: #b0b0b0;
}

It will show below type of layout. Please like if you find this useful.

1 Like

Hi,
We are close. Is almost the same but as you see on the example FAQ tab there only the arrow showing in black circle when we hover over the question.. I dont want in this case the background of the question to switch color as well. Let the background color stay grey as all other question and only the arrow to show with black circle on the question we hover on. Do you understand? Thank you very much for your patience!

OK, so in this case just remove below css:

#shopify-section-template–24619532353864__faq_accordion_cRUEqc .faq-question:hover {
background-color: #b0b0b0;
}

.faq-question:hover {
background: #000;
}
Final working solution is below:

  1. Find .faq-item and .faq-list classes in css file and replace with below:

.faq-item {
/* border: 1px solid #e5e5e5; /
/
border-radius: 8px; /
/
overflow: hidden; */
border-bottom: 1px solid #e5e5e5;
}

.faq-list {
display: flex;
flex-direction: column;
gap: 16px;
background: #f2f2f2;
border: none;
}

and add below css:

.faq-question:hover .faq-icon {
display: flex;
flex-direction: column;
gap: 16px;
background: #000;
border-radius: 100px;
color: #fff;
}

Where do you add this code?
Because I add it in 3 places and non of it workout.



Add in /assets/theme.css
.faq-item {
border-bottom: 1px solid #e5e5e5 !important;
}

.faq-list {
display: flex;
flex-direction: column;
gap: 16px;
background: #f2f2f2 !important;
border: none !important;
}

.faq-question:hover .faq-icon {
display: flex;
flex-direction: column;
gap: 16px;
background: #000;
border-radius: 100px;
color: #fff;
}

I am sorry but I still don’t understand where should I add this? That’s why I sand 3 screenshots to show you the different places

Please see below:
Go to Online store → Themes → Edit code and search for theme.css or base.css

There is no base.css. This is Impulse theme. There theme.css.liquid and if is about this place, the code doesn’t work then because I already tried there

In your shared screenshot I can see the theme.css just above the theme.css.liquid file. Can you please try.

Or you can add css in Themes → Customize → Custom CSS
.faq-item {
border-bottom: 1px solid #e5e5e5 !important;
}

.faq-list {
display: flex;
flex-direction: column;
gap: 16px;
background: #f2f2f2 !important;
border: none !important;
}

.faq-question:hover .faq-icon {
display: flex;
flex-direction: column;
gap: 16px;
background: #000;
border-radius: 100px;
color: #fff;
}

1 Like

1 Like

I give you solution for this because it made the changes. But the design sucks so I woudn’t use it. Coudn’t we copy their table somehow?

And also how can we decrease this spacing?

To reduce spacing add below :

.faq-section {
padding-top: 0px !important;

}

1 Like