Jump to content

Show Text Before Hover On Mobile Device, text colour and placement

Go to solution Solved by Ziggy,

Recommended Posts

What text are you referring to? Can you share your website URL and where this text is?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

Hi Ziggy,

This is the page : https://www.ib-arch.com/projects

If you open it on desktop, the text (name) of each project appears 'after hover', which is fine and I would like to keep it as it is. However, when you open the same page on the mobile phone, the titles of the projects are seen before hover (constantly) . Example (Wood like Honey) :

projects.thumb.jpg.556c7cb307fb4de06091daa4b2e1313d.jpg

So the question is, how to make these titles to be white colour and located on the bottom of the picture (not in the middle) ?

Thank you !

Link to comment
  • Solution

Try this Custom CSS:

@media only screen and (max-width:767px) {
  .portfolio-grid-overlay .portfolio-title {
    color: #fff;
  }
  .portfolio-grid-overlay .grid-item .portfolio-text {
    justify-content: flex-end;
}

 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

Add this below color:#fff;

font-size:12px;

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
On 8/14/2023 at 7:53 PM, Ieva said:

Amazing, works ! One more thing, if I may ask. Is there a way to have this title text under each picture (not on top of it) - only for mobile as well?

You can use this CSS code

/* Mobile-Portfolio title under image */
@media screen and (max-width:991px) {
div#gridThumbs {
    display: block !important;
}
.portfolio-text {
    opacity: 1 !important;
    position: relative !important;
}
    .portfolio-text * {
        color: black !important;
    }
}

 

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
  • 2 weeks later...
On 8/31/2023 at 5:23 AM, Martian said:

Tuanphan, how would I get the text a little smaller with this code?

add font-size to this code

.portfolio-text * {
        color: black !important;
font-size: 10px !important;
    }

 

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • 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.