Jump to content

Custom code needed to display two elements of my header on mobile view

Recommended Posts

Posted (edited)

I need help to create a custom code to be able to display both my "BOOK" button and cart button outside of my hamburger menu on the mobile version of my site. 

My site: nailvaultbyaleksa.com

First picture: what the mobile site looks like (I need the cart button on the right side of the "BOOK" button, but still aligned on the left.

Second picture: what the mobile version looks like right now and the design I chose based on the site's template.

Third picture: the code I put so that my book button is outside of my hamburger on mobile, because my site's template automatically includes it in the hamburger, which I did not want.

Fourth picture: what my site looks like in desktop view, which I am happy with and do not want to change.

Screenshot 2024-10-06 at 3.34.35 PM.png

Screenshot 2024-10-06 at 3.35.38 PM.png

Screenshot 2024-10-06 at 3.35.56 PM.png

Screenshot 2024-10-06 at 3.34.41 PM.png

Edited by Aleksa
i needed to add a detail i forgot
  • Replies 1
  • Views 407
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Posted (edited)

You can change the first 4 lines of your code from what it currently is, to this
 

@media screen and (max-width: 767px) {
  .header-actions.header-actions--right {
    display: flex !important;
  }
  .header-actions.header-actions--right .showOnMobile {
  	order: 1;
  }
  

if the result you're looking for is this image.thumb.png.ff69082e93227442da2449bed6b5b9d9.png

Edited by tazmeah

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.