Hi, simple question.
I’ve placed a class ‘caption’ on a p element in the html of one of my sections.
{{ block.settings.caption | escape }}
I’ve styled it a bit already using CSS in a tag at the top of my section code.
.caption{
font-size: 14px;
margin-bottom: 0px;
color: #1f81bd;
}
It works great. See the blue text—working.
But, when I add a hover effect to the ‘caption’ class nothing happens. Here’s the code again w an additional hover effect:
.caption{
font-size: 14px;
margin-bottom: 0px;
color: #1f81bd;
}
.caption:hover{
color: red;
}
But here’s the result:
Here’s some extra info:
- I’m using the Debut theme
- my CSS is placed in a tag at the top of my section code instead of a liquid {% stylesheet %} tag.
- I’ve tried other styles besides color, I’ve tried greater specificity, I’ve tried !important
- I’ve reloaded my store page in all sorts of ways
Any idea’s what’s happening? Perhaps the Debut theme is preventing :hover effects?

