Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Change "Written by" to "By"


teresa-t

Question

9 answers to this question

Recommended Posts

  • 1

@teresa-t

Add this code to Settings -> Advanced -> Code Injection -> Footer. This will remove "Written By" and just leave it as "By"

<script>
  (function(){
window.addEventListener('load', function(){
var writtenBy = document.querySelector('.blog-meta-item--author')
writtenBy.childNodes[0].textContent = writtenBy.childNodes[0].textContent.replace('Written',"")
})
})();
</script>

 

Philadelphia, PA

👉 Squarespace Tutorials 

Chat/Message on FB Messenger for quickest responsehttps://m.me/dejaegherryan

 

Link to comment
  • 0
14 hours ago, RyanDejaegher said:

@teresa-t

Add this code to Settings -> Advanced -> Code Injection -> Footer. This will remove "Written By" and just leave it as "By"


<script>
  (function(){
window.addEventListener('load', function(){
var writtenBy = document.querySelector('.blog-meta-item--author')
writtenBy.childNodes[0].textContent = writtenBy.childNodes[0].textContent.replace('Written',"")
})
})();
</script>

 

Thank you so much! This worked perfectly!

Link to comment
  • 0

Hi @RyanDejaegher,  can I ask you regarding your quote,  - how not just to get rid of "written" in  Written By, but also getting rid the "By" as well? 

here I add before the "By" an Iceland word, which is "Author" in Icelandic, but how can I get rid of the "By" as well? 

LINK: https://www.tstord.com/verkefnin/hegningarhus 

THE SCRIPT I USED

<script>
  (function(){
window.addEventListener('load', function(){
var writtenBy = document.querySelector('.blog-meta-item--author')
writtenBy.childNodes[0].textContent = writtenBy.childNodes[0].textContent.replace('Written',"Höfundur:")
})
})();
</script>

 

 

 

Link to comment
  • 0
On 10/23/2020 at 11:11 AM, GeorgiaB said:

Hi, does anyone know how to do this without code? I don't have the business plan. Building a site via SP is turning into a literal nightmare; I cannot believe I can't change something as simple as this more easily?? 

Post a link to your page please.

Link to comment
  • 0
On 6/17/2020 at 8:43 PM, RyanDejaegher said:

@teresa-t

Add this code to Settings -> Advanced -> Code Injection -> Footer. This will remove "Written By" and just leave it as "By"


<script>
  (function(){
window.addEventListener('load', function(){
var writtenBy = document.querySelector('.blog-meta-item--author')
writtenBy.childNodes[0].textContent = writtenBy.childNodes[0].textContent.replace('Written',"")
})
})();
</script>

 

WORKS GREAT, 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...