Jump to content

Search icon opens into full screen

Recommended Posts

Site URL: https://keyboard-jaguar-k52z.squarespace.com/

Hi there,

I'm trying to achieve this effect: when clicking on the search icon in the header, it opens a full screen window where to type the search and where the search results are shown.

Something like this: https://pauliandsisters.com/search

This is the website I'm working on: https://keyboard-jaguar-k52z.squarespace.com/

Password: tpt-2021

Thanks in advance for your help!

Edited by MaggieBovary
Link to comment
  • MaggieBovary changed the title to Search icon opens into full screen
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Hi. This is complex. 

Follow these steps

1. Add a section under footer >> Add Search Block

2. Next, let me know. We will test some code

 

Edited by tuanphan

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 2 weeks later...
On 5/3/2021 at 3:01 AM, tuanphan said:

Hi. This is complex. 

Follow these steps

1. Add a section under footer >> Add Search Block

2. Next, let me know. We will test some code

 

Hi @tuanphan , I added the search icon to the header and I would only need that when clicking on it the search page opens on the same page instead of opening a new one (hope it makes sense? 😅).

Is there a way to achieve this somehow?

Thanks!

Link to comment
On 5/11/2021 at 6:57 PM, MaggieBovary said:

Hi @tuanphan , I added the search icon to the header and I would only need that when clicking on it the search page opens on the same page instead of opening a new one (hope it makes sense? 😅).

Is there a way to achieve this somehow?

Thanks!

Try adding this to LAST LINE in Settings > Advanced > Code Injection > Footer

<script>
$(document).ready(function() {
	$('.header-actions-action [href*="search"]').attr('target','_self');
});
</script>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

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

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