Ghady Posted November 14, 2019 Share Posted November 14, 2019 Hello, I want to change the font for a specific page. If I change it from the Site Styles, it would edit the whole website's font. What custom css should I use to have a different font for a specific blank page. This is it: https://mastercarsreview.com/gallery Thank you! Link to comment
lu.diehl Posted November 14, 2019 Share Posted November 14, 2019 You can use the ID of the specific page to only target the font you on that page. In this case, the ID of your gallery page is #collection-5d84d1d7b2a12958f2942c36 I don't know what font you want to use or which text you want to change - body font or title fonts, or both... I'm just assuming you needed to change h1. #collection-5d84d1d7b2a12958f2942c36 h1 { font-family: acumin-pro-extra-condensed; /*change to the font you want to use*/ } Link to comment
Ghady Posted November 14, 2019 Author Share Posted November 14, 2019 8 minutes ago, lu.diehl said: You can use the ID of the specific page to only target the font you on that page. In this case, the ID of your gallery page is #collection-5d84d1d7b2a12958f2942c36 I don't know what font you want to use or which text you want to change - body font or title fonts, or both... I'm just assuming you needed to change h1. #collection-5d84d1d7b2a12958f2942c36 h1 { font-family: acumin-pro-extra-condensed; /*change to the font you want to use*/ } All right that's great! Thanks! But I also want to edit the titles under the images too. Can I do that? How? Link to comment
lu.diehl Posted November 14, 2019 Share Posted November 14, 2019 12 minutes ago, Ghady said: All right that's great! Thanks! But I also want to edit the titles under the images too. Can I do that? How? Sure! #collection-5d84d1d7b2a12958f2942c36 .image-title p { font-family: acumin-pro-extra-condensed!important; } Link to comment
Ghady Posted November 14, 2019 Author Share Posted November 14, 2019 17 minutes ago, lu.diehl said: Sure! #collection-5d84d1d7b2a12958f2942c36 .image-title p { font-family: acumin-pro-extra-condensed!important; } Thanks again for replying. However, this custom css isn't working! What shall I do? Link to comment
lu.diehl Posted November 14, 2019 Share Posted November 14, 2019 12 minutes ago, Ghady said: Thanks again for replying. However, this custom css isn't working! What shall I do? Ok, try removing the previous code and add this one piece of code which should work for both your h1 and image titles. Let me know if it works now. #collection-5d84d1d7b2a12958f2942c36{ h1, .image-title p{ font-family: garamond!important; } } Link to comment
Ghady Posted November 15, 2019 Author Share Posted November 15, 2019 On 11/14/2019 at 5:46 PM, lu.diehl said: Ok, try removing the previous code and add this one piece of code which should work for both your h1 and image titles. Let me know if it works now. #collection-5d84d1d7b2a12958f2942c36{ h1, .image-title p{ font-family: garamond!important; } } Thank you so much! It worked! Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.