Jump to content

Site Title Font Customization

Go to solution Solved by tuanphan,

Recommended Posts

  • Replies 10
  • Views 1.9k
  • Created
  • Last Reply

Top Posters In This Topic

On 3/27/2024 at 1:37 AM, alexferren said:

yeah its here: https://www.newthingkc.org/home

The current solution is just a .png, I would like something that changes with the color scheme

 

So you want

newthing is bold

kansas city is normal

?

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!)

Link to comment
  • Solution

You can use this code to Website > Website Tools > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
  $(document).ready(function() { 
		$('a#site-title:contains("new")').text('<span class="new">new</span><span>thing | kansas city</span>');
    $("a#site-title").each(function(){
    $(this).html($(this).text());
  });
	});
</script>
<style>
  a#site-title span:nth-child(1) {
    font-weight: bold;
}
</style>

image.png.34f97a84d0f4e175db8f829548daacbc.png

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!)

Link to comment
  • 2 weeks later...
On 4/22/2024 at 11:18 PM, alexferren said:

@tuanphanany suggetions on making this solution work on mobile as well?

 

Can you remove this  code only? I will test it again

<script>
  $(document).ready(function() { 
		$('a#site-title:contains("new")').text('<span class="new">new</span><span>thing.</span>');
    $("a#site-title").each(function(){
    $(this).html($(this).text());
  });
	});
</script>

 

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!)

Link to comment
  • 3 weeks later...

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.