Jump to content

display search criteria in summary post page

Recommended Posts

squarespace help recommended this forum for advice.  

I want to display what  criteria were used to create a summary page. Ie, If I select archive search:  Cat a, I want the summary page to show that Cat a was the search criteria.

Any ideas?  I want to minimize coding, but am willing to put some in if needed. 

 

Thanks!

 

Sue

blogsearchbefore.jpg

Link to comment
  • Replies 2
  • Views 455
  • Created
  • Last Reply

Hi. Site is still not published.

  Right now I put in a code block that has a button that  just pops up the url.  The url shows the criteria.  Ugly but at least it is a start 🙂

Code copied tutorial republic

 <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Get Current URL in JavaScript</title>
</head>
<body>
    <script>
    function getURL() {
        alert("The URL of this page is: " + window.location.href);
    }
    </script>
     
    <button type="button" onclick="getURL();">See page criteria</button>
</body>
</html>

blogsearchwithbuttonforurl.jpg

Link to comment

Archived

This topic is now archived and is closed to further replies.

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