Jump to content

How to change the blog headers to different fonts using css?

Recommended Posts

Posted

Site URL: http://meian.com.au

Hi I’m having problems trying to target the different blog headers to have different fonts on my main page?  They all belong to the one class h1 but is there a way I can target each header so they can have different fonts for each header?  

  • Replies 2
  • Views 235
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted
On 9/12/2022 at 12:40 PM, Tula85 said:

Site URL: http://meian.com.au

Hi I’m having problems trying to target the different blog headers to have different fonts on my main page?  They all belong to the one class h1 but is there a way I can target each header so they can have different fonts for each header?  

You can set style by target the attribute href

image.thumb.png.d3ecf4aa4df6d50e72d996b37c590434.png

My sample code is

.blog-title a[href *="australian"] {
  font-family: "arial" ;
}

Change my code to meet your requirement

Hope it can help

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

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.