Jump to content

Moving Search Icon & Account Icon

Recommended Posts

Hello,

I was wondering if anyone could help me. I would like to move my search icon on my navigation to the opposite side (right side) next to the account icon. Is there a way to do this? 

 

Also, is it possible to get both of these icons in the navigation on mobile view to the right of the logo? i have attached pictures with where i would like these to be. 

 

Thank you in advance for any help! 

Screenshot 2023-02-06 at 17.01.56.png

Screenshot 2023-02-06 at 16.56.50.png

Screenshot 2023-02-06 at 16.56.05.png

Link to comment
  • Replies 27
  • Views 1.6k
  • Created
  • Last Reply

Top Posters In This Topic

On 2/13/2023 at 2:33 AM, Emilienev said:

@tuanphansorry! its www.thealchemiguide.com

Add this to Last Line in Code Injection > Footer

<script>
  $(document).ready(function() { 
		$('header#header .search-icon').insertBefore('.header-actions.header-actions--right>.user-accounts-link');
	});
</script>
<style>
  .header-layout-branding-center-nav-center .header-actions--right>div:first-child {
    display: none;
}
</style>

image.thumb.png.6fd8c1a22f949e03d40b261b03f7f273.png

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

@tuanphan thank you so much that worked perfectly on the desktop! Is there a way to get the search icon and the members icon into my navigation header on mobile view next to the site title? At the moment i cant see the search icon and the members icon is positioned like a navigation title. 

 

Thanks again for your help! 🙂 

Link to comment
On 2/16/2023 at 5:00 AM, Emilienev said:

@tuanphan thank you so much that worked perfectly on the desktop! Is there a way to get the search icon and the members icon into my navigation header on mobile view next to the site title? At the moment i cant see the search icon and the members icon is positioned like a navigation title. 

 

Thanks again for your help! 🙂 

Current Member Icon is in overlay Menu. You want to move it outside + add a search icon to right of header. Is this right?

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 2/21/2023 at 4:38 PM, Emilienev said:

@tuanphanYes please, so the search icon and member icon are together to the right of the header if possible 🙂 Thank you! 

Add this code under

<style>
  @media screen and (max-width:991px) {
  .header-actions.header-actions--right, .header-actions.header-actions--right>div {
    display: flex !important;
    position: relative;
    left: -40px;
}
  }
</style>

 

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 2/27/2023 at 5:14 PM, Emilienev said:

@tuanphanthank you! It has worked but now there are two search icons and the members icon is still in the overlay menu...I added it underneath the previous piece of code have i added it in the wrong place? Thanks again 🙂 

Screenshot 2023-02-27 at 10.12.17.png

Add this under to hide them

<style>
  .header-actions.header-actions--right>div:first-child {
    display: none !important;
}
  .user-accounts-link.header-menu-nav-item.header-nav-item--collection.customerAccountLoginMobile.loaded {
    display: none;
}
</style>

image.png.e82a2a776a69bb4a9d1fa05dbcfa9e64.png

 

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 2 weeks later...
  • 1 month later...
  • 1 month later...

Hi @tuanphan sorry to bother you again but ive made some changes to my site and ideally would like the search bar and account icon to be further to the right on the mobile view (so it's more spaced out) is there a way to do this? The website is www.thealchemiguide.com and the password is Hello123, appreciate your help, thank you! Screenshot2023-06-05at17_30_25.thumb.png.be9f26b93ac075c7e937a36dfb1e4379.png

Link to comment
On 6/5/2023 at 11:33 PM, Emilienev said:

Hi @tuanphan sorry to bother you again but ive made some changes to my site and ideally would like the search bar and account icon to be further to the right on the mobile view (so it's more spaced out) is there a way to do this? The website is www.thealchemiguide.com and the password is Hello123, appreciate your help, thank you! Screenshot2023-06-05at17_30_25.thumb.png.be9f26b93ac075c7e937a36dfb1e4379.png

Hello123

password is incorrect

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 4 weeks later...

@tuanphan Hello, im so sorry to bother you again but i was wondering whether you could help me integrate this cart icon on both my desktop header and mobile header? ideally id like the search, account and cart icon all to the right and the same size (maybe slightly smaller if thats possible?). On the mobile view there seems to be two carts which im not sure why. The password to my website is Hello123, thank you so much in advance! 

Screenshot 2023-07-05 at 12.14.04.png

Screenshot 2023-07-05 at 12.14.10.png

Link to comment

Don't remove any code in your current code. Add this under

.header-display-mobile .header-actions.header-actions--right .showOnMobile+.showOnDesktop .header-actions-action {
    display: none !important;
}
.header-actions.header-actions--right>div {
    left: 0 !important;
}

 

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.