Jump to content

Change default text

Recommended Posts

  • Replies 11
  • Views 1.1k
  • Created
  • Last Reply
3 hours ago, tuanphan said:

You need to use JavaScript. Can you share link to page in screenshot?

Hi Tuan, thanks for your answer. My client's site is private and don't have the permissions to publish it yet... Are there any other screenshots I can provide?

 

I also tried injecting code in footer: (not working)

<script>
  // Read More Text
  document.querySelectorAll('.BlogList-filter').forEach(function(bloglistfilter) {
      bloglistfilter.textContent = "Tagged "; // Customize text here
  })
</script>

Link to comment
On 10/12/2020 at 3:05 AM, tuanphan said:

You can setup password & share url

Or you can duplicate the site & share duplicated site url.

https://support.squarespace.com/hc/en-us/articles/360039396131-Duplicating-a-site

Hey Tuanphan thanks for your message, good to know for the future.

The site is finally published! Here is the link to a specific page: https://www.andreakrupp.com/blog/tag/Arctic

Now, is it possible to remove words "Posts tagged" so that only the tag name would appear ?

(here in this page it would only show "Arctic" for example) and same for other tag pages.

 

Thanks again!

Screen Shot 2020-10-15 .png

Link to comment

Add the following to Settings > Advanced > Code Injection > HEADER.

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js" type="text/javascript"></script>

Add the following to Blog Settings > Advanced > Page Header Code Injection.

<script>

  $( ( ) => {
  
    let $e = $( '.BlogList-filter' );
    
    if ( ! $e.length ) return;
    
    let s = $e.text ( ).replace ( 'Posts tagged ', '' );
    
    $e.text ( s );
    
    } );
    
  </script>

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
On 10/19/2020 at 9:29 PM, creedon said:

Add the following to Settings > Advanced > Code Injection > HEADER.


<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js" type="text/javascript"></script>

Add the following to Blog Settings > Advanced > Page Header Code Injection.


<script>

  $( ( ) => {
  
    let $e = $( '.BlogList-filter' );
    
    if ( ! $e.length ) return;
    
    let s = $e.text ( ).replace ( 'Posts tagged ', '' );
    
    $e.text ( s );
    
    } );
    
  </script>

Let us know how it goes.

Thank you thank you!!! Worked perfectly.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.