Jump to content

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

Recommended Posts

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
Link to comment
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

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 4 weeks later...
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!!

Link to comment

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.