Jump to content

Needing assistance with some code.

Recommended Posts

Hello,

I am having some difficulties with my CSS code. I added the "hamburger menu", but it's taking up the entire screen. I want it to be narrow like this screenshot. Also, how can I move the hamburger to the right side instead of it's current location on the right?image.thumb.png.eda7f4435175d48cccd4443a6249b297.pngimage.thumb.png.1ba61a720a6279e7b21f725d9f298f9c.png

image.thumb.png.59e1a69c541368f488a43be099ff99cf.png

 

Also, i am looking to add some sort of "Scroll" button such as this. image.thumb.png.dd1971392d4ce970e4e37f56ab458bb2.png

 

One final request is that when the page loads, it sort of "fades in" with a logo similar to the a day to the remember website when you load it. Their website is https://adtr.com if you want a live representation.

Link to comment
  • Replies 9
  • Views 588
  • Created
  • Last Reply

Top Posters In This Topic

26 minutes ago, Marvise said:

Hello,

I am having some difficulties with my CSS code. I added the "hamburger menu", but it's taking up the entire screen. I want it to be narrow like this screenshot. Also, how can I move the hamburger to the right side instead of it's current location on the right?image.thumb.png.eda7f4435175d48cccd4443a6249b297.pngimage.thumb.png.1ba61a720a6279e7b21f725d9f298f9c.png

image.thumb.png.59e1a69c541368f488a43be099ff99cf.png

 

Also, i am looking to add some sort of "Scroll" button such as this. image.thumb.png.dd1971392d4ce970e4e37f56ab458bb2.png

 

One final request is that when the page loads, it sort of "fades in" with a logo similar to the a day to the remember website when you load it. Their website is https://adtr.com if you want a live representation.

Can you share your site so I can take a look?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

You can use the following code to set burger menu smaller and locate it to the right

.header-display-desktop {
  flex-direction: row-reverse;
}

.burger-box {
  width: 30px; /*change the value for width of burger*/
}

Let me know how it works on your site

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
3 hours ago, Beyondspace said:

You can use the following code to set burger menu smaller and locate it to the right

.header-display-desktop {
  flex-direction: row-reverse;
}

.burger-box {
  width: 30px; /*change the value for width of burger*/
}

Let me know how it works on your site

This helped with the hamburger placement! Now I just need help shrinking the navigation menu when it's open. It currently takes up the entire page, but I want it on the right side in a small panel similar to the one on ADTR's website.

Link to comment
On 3/30/2024 at 3:25 AM, Marvise said:

This helped with the hamburger placement! Now I just need help shrinking the navigation menu when it's open. It currently takes up the entire page, but I want it on the right side in a small panel similar to the one on ADTR's website.

You can use this CSS code

@media screen and (min-width:992px) {
div.header-menu {
    left: unset !important;
    width: 30% !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
7 hours ago, tuanphan said:

You can use this CSS code

@media screen and (min-width:992px) {
div.header-menu {
    left: unset !important;
    width: 30% !important;
}}

 

This fixed the size problem! Also do you have any recommeneded code for a "Scroll down" and "top" button? I also noticed my website has some spacing issues on mobile compared to desktop. Any solutions to fix that without altering the desktop layout?

Link to comment
On 4/1/2024 at 4:17 AM, Marvise said:

This fixed the size problem! Also do you have any recommeneded code for a "Scroll down" and "top" button? I also noticed my website has some spacing issues on mobile compared to desktop. Any solutions to fix that without altering the desktop layout?

#1. Back to top, you can follow this https://www.will-myers.com/back-to-top-button

#2. Can you describe in more detail with spacing issues?

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 4/3/2024 at 5:40 AM, tuanphan said:

#1. Back to top, you can follow this https://www.will-myers.com/back-to-top-button

#2. Can you describe in more detail with spacing issues?

#1. I followed this tutorial. Do you know how to make the button disappear when at the top of the page?

#2. The block with "New single Available Now" is over lapping the tour dates button. The block  with "stream 'Virus' and Official merch isn't stacked on top rather than side by side.

Link to comment
On 4/6/2024 at 8:46 AM, Marvise said:

#1. I followed this tutorial. Do you know how to make the button disappear when at the top of the page?

#2. The block with "New single Available Now" is over lapping the tour dates button. The block  with "stream 'Virus' and Official merch isn't stacked on top rather than side by side.

#1. Adjust this option then update your code

image.png.8bfc321b064c7ee033bd2fc095f5236e.png

#2. I think you should able to edit mobile layout to prevent overlap

https://support.squarespace.com/hc/en-us/articles/6421525446541-Editing-your-site-with-Fluid-Engine#toc-mobile-layout

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.