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

How to remove link tag rel="alternate" from blog page head


mfaith
Go to solution Solved by mfaith,

Question

I have a squarespace site as my main home page for my new podcast, but i use a dedicated podcast host (simplecast) to actually host my episodes and provide the rss feed.  Most Podcast platforms (Apple, spotify, etc) simply require registering that feed, in order to get a show listed.  However Google Podcasts, has no submission process, they just scrape sites and look for specific criteria.  Namely that the home page url in the podcast feed points to a page that has a corresponding <link> tag of rel type "alternate" that has a url pointing to the feed.  So they're effectively pointing at each other.  That's their way of confirming association, and thus get listed on their service.  However they require there only be ONE <link> tag of rel type "alternate".  I've added the link tag with my feed via code injection to the head of my page.  But Squarespace's Blog page is adding its own for the Blog RSS, which i don't want.  There doesn't seem to be away to disable the blog rss feed via settings.  Does anyone know how to remove that SS link tag via code injection script? Any help would be greatly appreciated.

Google Podcasts requirements: https://developers.google.com/search/reference/podcast/homepage-requirements

Link to post
  • Answers 6
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

Popular Posts

The same way unfortunately; through a Customer Care ticket.

This code in the header via code injection allowed me to remove the link tag.  I'm not sure if it'll be effective with Google's scraping of the site.  I guess that will depend on whether they run scri

6 answers to this question

Recommended Posts

  • 0
3 hours ago, paul2009 said:

You cannot remove code from the head section as it is controlled by the backend, to which you have no access. 

This code in the header via code injection allowed me to remove the link tag.  I'm not sure if it'll be effective with Google's scraping of the site.  I guess that will depend on whether they run scripts with their bots in the same way a loading browser does.  But beyond that, can you think of anything wrong with this code?

 

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script type="text/javascript">
  $("link[rel='alternate'][title='RSS Feed']").remove();
</script>

 

Link to post
  • 0

You cannot remove code from the head section as it is controlled by the backend, to which you have no access. You may want to contact Squarespace Customer Care to point out the issue and see if they have any suggestions. If not, you could raise this with them as a feature request. 

sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi, I'm Paul, founder of SF Digitalbuilding the features that Squarespace didn't include™, including a range of Squarespace extensions.
I value honesty, integrity, transparency and respect.
Links in my posts may refer to SF Digital products or may be affiliate links.

Link to post
  • 0
3 hours ago, paul2009 said:

You cannot remove code from the head section as it is controlled by the backend, to which you have no access. You may want to contact Squarespace Customer Care to point out the issue and see if they have any suggestions. If not, you could raise this with them as a feature request. 

Thanks for the reply.  I did reach out to Customer Care, and they said they don't provide the feature.  I asked them about a code injection "hack" to temporarily address it, and they told me i should try here to see if anyone has any suggestions, since they don't provide support for custom code.  How would i go about requesting that as a feature?

Edited by mfaith
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...