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

Change "Written by" to "By"


teresa-t
Go to solution Solved by RyanDejaegher,

Question

I am using v7.1 to create a site for a client where articles, essays, poems, videos and audio are posted via blogposts. I would like to change "Written by" to simply "By" since not all of the posted works are written.

Link to post
  • Answers 8
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Popular Posts

I actually got it myself    <script>   (function(){ window.addEventListener('load', function(){ var writtenBy = document.querySelector('.blog-meta-item--author') writtenBy.chil

8 answers to this question

Recommended Posts

  • 0

@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 post
  • 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 post
  • 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 post
  • 0

I actually got it myself 

 

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

Link to post
  • 0

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?? 

Link to post
  • 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 post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...