Jump to content

Replace Blog Post Titles with custom ''Image''

Recommended Posts

Add to Design > Custom CSS

div.blog-basic-grid>article:nth-child(1) .blog-title {
    background-image: url(https://cdn.pixabay.com/photo/2021/02/03/14/52/woman-5978200__340.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    color: transparent;
}
div.blog-basic-grid>article:nth-child(2) .blog-title {
    background-image: url(https://cdn.pixabay.com/photo/2018/03/19/15/04/wet-3240211__340.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    color: transparent;
}

 

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
4 hours ago, tuanphan said:

Add to Design > Custom CSS


div.blog-basic-grid>article:nth-child(1) .blog-title {
    background-image: url(https://cdn.pixabay.com/photo/2021/02/03/14/52/woman-5978200__340.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    color: transparent;
}
div.blog-basic-grid>article:nth-child(2) .blog-title {
    background-image: url(https://cdn.pixabay.com/photo/2018/03/19/15/04/wet-3240211__340.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    color: transparent;
}

 

@tuanphan Thank you for replying! But I need the blog post images to be different on all blog posts, even in the different categories (like the code you gave me on blog thumbnail hover effect). Can you help me with the code for each blog post title within different catergories (My Truth / Lyrics / Behind My Lyrics)?

Link to comment
On 2/15/2021 at 8:21 PM, SolveigTraeet said:

@tuanphan Thank you for replying! But I need the blog post images to be different on all blog posts, even in the different categories (like the code you gave me on blog thumbnail hover effect). Can you help me with the code for each blog post title within different catergories (My Truth / Lyrics / Behind My Lyrics)?

@tuanphan Can you help me complete this?

Link to comment

Try adding to Mytruth Page Header

<style>
  div.blog-basic-grid>article:nth-child(1) .blog-title {
    background-image: url(https://cdn.pixabay.com/photo/2021/02/03/14/52/woman-5978200__340.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    color: transparent;
}
div.blog-basic-grid>article:nth-child(2) .blog-title {
    background-image: url(https://cdn.pixabay.com/photo/2018/03/19/15/04/wet-3240211__340.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    color: transparent;
}
</style>

 

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.