Jump to content

Replace Blog Post Titles with custom ''Image''

Recommended Posts

  • Replies 6
  • Views 676
  • Created
  • Last Reply

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

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

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

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

Link to comment

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.