Jump to content

Apply single text change to ALL [pages

Recommended Posts

I'd like to set up some of my text as some sort of "universal snippet" so that I can make a change to that text only once, and it's reflected on the entire site.

For example, my business changes hours on a sort-of monthly basis. The hours of the business are posted on several of my pages. Not just the header and footer, but sometimes within text blocks, etc.

There are other use cases, as well. I may want to change "contact Bob" to "contact Steve" but again, have it changed on all of the pages.

I'm not looking for a solution for an already developed site, rather I want to know how I can insert a snippet of that sort for future changes.

Link to comment
  • Replies 5
  • Views 864
  • Created
  • Last Reply

Top Posters In This Topic

Suppose you need to set the phone number: 0123.456.789 at About, Contact, Services Pages page.

You can add 3 Code Blocks on 3 page, & paste this code

<span class="phone-number"></span>

Next, add this to Design > Custom CSS

.phone-number:before {
	content: "0123.456.789";
	display: block;
	font-size: 18px;
}

In the future, if you want to change phone on both 3 pages, just change number in Custom CSS.

Similar if address

<span class="address"></span>

and CSS

.address {

content: "123 Wall Street, New York";

display: block;

font-size: 18px;

}

This is just a simple example. Depending on your cases, we may use different codes.

Edited by tuanphan

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
1 hour ago, Leykers said:

Hi @tuanphan I have followed you instructions on Upload a custom font but am getting a Syntax Error on line 1 after clicking on the font. Can you help at all.

 

Cheers

 

Graham

can you share link to your site & custom font url?

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
On 4/23/2021 at 8:05 PM, Leykers said:

Hi @tuanphan I have followed you instructions on Upload a custom font but am getting a Syntax Error on line 1 after clicking on the font. Can you help at all.

 

Cheers

 

Graham

Your site is private. Can you setup password & share url again?

image.thumb.png.4aa0c55eae7b5b18a211fc041a4f4e66.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

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.