Jump to content

Theme Panzari :: Opaque image when hovering on mobile

Recommended Posts

Site URL: https://howtopullitoff.com/

Hi all,

I need to have the mobile version of this theme turn the image opaque so the title will be more readable. I have the code to make the text permanent on the mobile version but it can't be read because the image behind it is not opaque.

Below is a screenshot of what it should look like on the mobile version (the screenshot attached is of the mobile preview on the desktop when hovered over). This is the code I found to make the text permanent. I played with it a bit but can't find a way to make the whole image opaque. TIA!!

@media screen and (max-width:640px) {
.portfolio-text {
    opacity: 1 !important;



This is the current setup where the text is not readable on the mobile version:




This is the desired effect:



Screen Shot 2020-05-16 at 9.09.25 PM.png

Link to comment
  • Replies 1
  • Views 293
  • Created
  • Last Reply

Add to Home > Design > Custom CSS

@media screen and (max-width:767px) {
a.grid-item .grid-image:after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.4);

you can change background overlay opacity (0.4) it is from 0 to 1

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment


This topic is now archived and is closed to further replies.

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.