Jump to content

how to have the header name interactively changing according the active page

Recommended Posts

Posted (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!794769480_Bildschirmfoto2022-11-04um18_14_26.thumb.png.4ad3712c152a62902c7756a53c92864a.png1257346471_Bildschirmfoto2022-11-04um18_14_51.png.e0912c5e27f19fa9a5f45929079d8609.png346811148_Bildschirmfoto2022-11-04um18_15_01.png.36b18eda43551c80a3d6d3b46fb00fc8.png

Edited by LonniWong
Posted
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!794769480_Bildschirmfoto2022-11-04um18_14_26.thumb.png.4ad3712c152a62902c7756a53c92864a.png1257346471_Bildschirmfoto2022-11-04um18_14_51.png.e0912c5e27f19fa9a5f45929079d8609.png346811148_Bildschirmfoto2022-11-04um18_15_01.png.36b18eda43551c80a3d6d3b46fb00fc8.png

It seems that you have figured it out, right?

image.thumb.png.da2016e2ad83c3ca4888bdf09ac961c9.png

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

Posted
4 hours ago, bangank36 said:

It seems that you have figured it out, right?

image.thumb.png.da2016e2ad83c3ca4888bdf09ac961c9.png

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.

  • 4 weeks later...
Posted
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!!

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.