LonniWong Posted November 4, 2022 Posted November 4, 2022 (edited) Hello. can someone please help me how to adjust the site title fonts interactively according the active page? So, if one is on the photography page, the header would show "Lonni Wong Photography". i have this code already from @tuanphan and i like to keep the design. The screenshots show examples of the pages. this is the code i could use. // logo // a#site-title:before { content: "Lonni Wong"; font-size: calc(~"(2 - 1) * 1.2vw + 1rem"); font-weight: normal; } a#site-title { font-size: 0; font-weight: normal; } a#site-title:after { content: " Art"; color: grey; text-transform: capitalize; font-weight: normal; font-size: calc(~"(1.5 - 1.5) * 1.2vw + 1rem"); }https://www.lonniwong.com/commercial pw: testme Any help apreciated! Edited November 4, 2022 by LonniWong
Beyondspace Posted November 5, 2022 Posted November 5, 2022 15 hours ago, LonniWong said: Hello. can someone please help me how to adjust the site title fonts interactively according the active page? So, if one is on the photography page, the header would show "Lonni Wong Photography". i have this code already from @tuanphan and i like to keep the design. The screenshots show examples of the pages. this is the code i could use. // logo // a#site-title:before { content: "Lonni Wong"; font-size: calc(~"(2 - 1) * 1.2vw + 1rem"); font-weight: normal; } a#site-title { font-size: 0; font-weight: normal; } a#site-title:after { content: " Art"; color: grey; text-transform: capitalize; font-weight: normal; font-size: calc(~"(1.5 - 1.5) * 1.2vw + 1rem"); }https://www.lonniwong.com/commercial pw: testme Any help apreciated! It seems that you have figured it out, right? 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
LonniWong Posted November 5, 2022 Author Posted November 5, 2022 4 hours ago, bangank36 said: It seems that you have figured it out, right? hello @bangank36 no, i havent yet. i meant the page also featured next to the site title "Lonni Wong". So it would turn to "Lonni Wong Feature Film". for example.
tuanphan Posted November 10, 2022 Posted November 10, 2022 You will need to add this code to All Page Headers (page where you want to do this) <style> a#site-title:after { content: " Commercial"; text-transform: uppercase; font-size: 2rem; } </style> This code for Commercial Page 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!)
LonniWong Posted December 3, 2022 Author Posted December 3, 2022 On 11/10/2022 at 7:35 AM, tuanphan said: You will need to add this code to All Page Headers (page where you want to do this) <style> a#site-title:after { content: " Commercial"; text-transform: uppercase; font-size: 2rem; } </style> This code for Commercial Page Thank you @tuanphan i see your answer just now, because i received a mail today. This is a bit strange, that i did not see this, even though i was checking on this very regular. Sorry im not using this anymore, but i had to find other solutions, but thanks for your reply!! tuanphan 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment