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

How to Hide or Redirect a Blog Page *without* using a password

Recommended Posts

Hi there, anyone know a way to hide a blog page...that is, make it so visitors who attempt to go to, for example, sienaandtoast.com/podcast ...are just unable to see it, or are redirected to another page? What I'm trying to do is keep individual blog posts accessible, while blocking access to [the whole bird's eye view of all the blog posts] (which they'd be able to do easily if they just go to the blog page and see all of 'em there).

Unfortunately, a redirect from the blog page just doesn't work because "Redirects only work if the page you're redirecting from has been deleted or disabled." <- per Sqsp support article and, I also don't want to require a password for this.

Has anyone successfully done something like this? Thanks in advance for any insights!

Share this post


Link to post

You can insert JavaScript code to Page Header to create redirect without using redirect feature in SS

Add to Page Header

<script>
  window.location.href = "http://beaverhero.com";
</script>

 


You can send your question to my email to get faster answer. I provide free priority support in this crazy time. 

How to Setup Password & Share URL - Free Templates - Free Code - CSS ID List

Share this post


Link to post

Wow, that's amazing, thanks! But unfortunately, this code is "too powerful," in the sense that it also redirects [direct links to individual blog posts]. I still want people to be able to access the individual blog posts. I only want to redirect people who try to access the one Blog Page.

Share this post


Link to post
6 minutes ago, ToastyT said:

Wow, that's amazing, thanks! But unfortunately, this code is "too powerful," in the sense that it also redirects [direct links to individual blog posts]. I still want people to be able to access the individual blog posts. I only want to redirect people who try to access the one Blog Page.

You can add to blog page header, or try insert Code Block > Paste above code


You can send your question to my email to get faster answer. I provide free priority support in this crazy time. 

How to Setup Password & Share URL - Free Templates - Free Code - CSS ID List

Share this post


Link to post

Ahh! Thank you! It worked when I put the code into the "Post Blog Item Code Injection." That's pretty counter-intuitive, but fortunately, in the template I'm using (Brine,) this code loads on the blog landing page but NOT on individual blog post pages. Thank you so much again!

Share this post


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