Jump to content

erical

Member
  • Posts

    1
  • Joined

  • Last visited

Posts posted by erical

  1. On 10/14/2021 at 4:12 AM, tuanphan said:

    I recently solved a similar problem for a member
    To set a password for an individual projects, follow these steps

    1. Add a standard page in Not Linked >> Don't add any content for this page

    2. Set up a password & add this code into Page Header

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

    Replace beaverhero with individual project url

    3. Add this code to Settings > Advanced > Code Injection > Footer

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    <script>
    $(document).ready(function() {
    	// project 1
    	$('a.portfolio-hover-item[href="/work/ikigai"]').attr('href','https://beaverhero.com');
    	// project 2
    	$('a.portfolio-hover-item[href="/work/beams"]').attr('href','https://abc.com');
    });
    </script>
    • Replace /work/ikigai with individual project url
    • replace beaverhero, abc.com with standard page (you created in step 1)

    Explain

    • SS doesn't allow to setup a password for individual projects, so the idea here is
    • Click on an individual project in Portfolio Page >> Redirect the user immediately to a standard page A >> Set a password for page A >> If the user types the correct password >> Instantly redirect to the original individual project . If the user mistypes, an error occurs and they need to re-enter the password.

     

    I followed these instructions, but when I click on my portfolio project, it still brings me to the project page and does not redirect to the password protected page. I have additionally tried using the URL mapping section of Squarespace settings to redirect the page, and nothing.

    I have tried debugging by redirecting a non-portfolio page to another non-portfolio page, neither of which with passwords, and redirecting does not seem to be working at all. 

    I'm quite frustrated. Do you have any other suggestions @tuanphan? Thank you so much, I appreciate it!

    And @squarespace, it honestly makes no sense to me why you would have such a prohibitive (lack of a) feature. Please please fix it.

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