Jump to content

Custom CSS on main page of website

Recommended Posts

Site URL: https://www.morgangregory.com

I've been trying for months to try and add some sort of Custom CSS to my main page on my site- not an additional gallery that all the tutorials do it on. Nothing seems to help me. All I want to do is add a text hover over the images on that page, instead of have the page title underneath the image/link (see attached image for example). To make my homepage more exciting, as you can't change the template of your site without starting a new one and a new billing plan etc.

Could this depend on the template/design you use? Or is it just a fact you simply can't change anything on you main page? -You're stuck with that design and that's it.

Screenshot 2021-02-28 at 17.38.06.png

Link to comment
  • Replies 4
  • Views 402
  • Created
  • Last Reply

Hi. Add to Design > Custom CSS

/* Portfolio page hover */
a.grid-item {
    position: relative;
}
.portfolio-text {
    position: absolute !important;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%,-50%);
        -ms-transform: translate(-50%,-50%);
            transform: translate(-50%,-50%);
    width: 100%;
    text-align: center;
    z-index: 999;
    opacity: 0;
}
a.grid-item:hover .portfolio-text {
    opacity: 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
  • 2 weeks later...

Archived

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.