Jump to content

Mobile header cutting off elements - In dire need of some assistance

Recommended Posts

Hello,

Looking to get some help after too many hours battling with GPT and Claude. I have an issue that has haunted all day. The header on the mobile portion of the editor (and live site) cuts off either the burger, or the logo on the right hand of the header. Whatever is on the right hand side bleeds off the page so to speak. 

Any advice would be hugely appreciated.

Joe

Screen Shot 2023-08-30 at 7.00.06 PM.png

Screen Shot 2023-08-30 at 7.04.38 PM.png

Edited by Pointsixoneeight
To show a second image
Link to comment
  • Pointsixoneeight changed the title to Mobile header cutting off elements - In dire need of some assistance
  • Replies 11
  • Views 1.8k
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...
16 hours ago, cinnamoncat said:

Yes, please see below.

I'm hoping for the breadcrumb to show "Shop > Category > Item Name", in this case it would be "Shop > Pasties > Show Your Pride Pasties".

Thank you!

Screen Shot 2023-09-14 at 10.13.13 AM.png

I don't know how to add this automatically but if you agree to add it manually, I can give the code

  • Ideal is I will give some new breadcrumb code
  • You edit text, url, and add it to Code Block - Additional Info
  • You will need to do this for all products

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 9/19/2023 at 11:44 PM, cinnamoncat said:

That works! Yes, please!

This will take some steps

First, add this code to Settings > Advanced > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $('section.ProductItem-additional .code-block .ProductItem-nav-breadcrumb').appendTo('nav.ProductItem-nav');
});
</script>
<style>
nav.ProductItem-nav>div:not(.custom-breadcrumb) {
    display: none !important;
}
</style>

Next you need to edit each product > add this Code Block to Product Additional Info

  <div class="ProductItem-nav-breadcrumb" data-animation-role="content">
    <a href="/shop" class="ProductItem-nav-breadcrumb-link">Shop</a>
     <span class="ProductItem-nav-breadcrumb-separator"></span>
    <a href="/shop/gratuity" class="ProductItem-nav-breadcrumb-link">Gratuity</a>
    <span class="ProductItem-nav-breadcrumb-separator"></span>
    <a href="/shop/p/custom-dress" class="ProductItem-nav-breadcrumb-link">Custom Dress — Deposit</a>
  </div>

The code will create a bar like this in Additional Info

image.png.b40f17d561f2be9d55309189217925df.png

then repeat #2 for all products

You can edit Category Name/URL - Product Name/URL in the code

image

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
5 hours ago, tuanphan said:

This will take some steps

First, add this code to Settings > Advanced > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $('section.ProductItem-additional .code-block .ProductItem-nav-breadcrumb').appendTo('nav.ProductItem-nav');
});
</script>
<style>
nav.ProductItem-nav>div:not(.custom-breadcrumb) {
    display: none !important;
}
</style>

Next you need to edit each product > add this Code Block to Product Additional Info

  <div class="ProductItem-nav-breadcrumb" data-animation-role="content">
    <a href="/shop" class="ProductItem-nav-breadcrumb-link">Shop</a>
     <span class="ProductItem-nav-breadcrumb-separator"></span>
    <a href="/shop/gratuity" class="ProductItem-nav-breadcrumb-link">Gratuity</a>
    <span class="ProductItem-nav-breadcrumb-separator"></span>
    <a href="/shop/p/custom-dress" class="ProductItem-nav-breadcrumb-link">Custom Dress — Deposit</a>
  </div>

The code will create a bar like this in Additional Info

image.png.b40f17d561f2be9d55309189217925df.png

then repeat #2 for all products

You can edit Category Name/URL - Product Name/URL in the code

image

Thank you, but that is not what I'm looking for. I'm hoping for the actual breadcrumb to show the category, not an additional note, as the additional note shows underneath the product which does not make sense. See screenshots.

Additionally, the code voided my code for bold text and the bold text is critical 😕 Below is my existing code. Thoughts? I'm starting to think this is simply impossible thanks to Squarespace.

 

.header-nav-item a:hover {
    font-weight: bold;
}

.nested-category-breadcrumb-link {
  font-weight: bold;
}
.category-link {
  font-weight: bold;
}
.products.collection-content-wrapper .ProductItem-nav-breadcrumb-link:last-child {
  font-weight: bold;
}
button.cart-row-edit::before {
  content:'Add Notes'
}
button.cart-row-edit span {
  display:none;
}
/* Fix mobile shifting */
@media screen and (max-width:700px) {
.header-title-nav-wrapper {
    max-width: 57% !important;
}
}
/* show all categories */
@media only screen and (max-width: 575px) {
	.products.collection-content-wrapper .nested-category-children {
		flex-wrap: wrap !important;
		overflow: visible !important;
	}
	.products.collection-content-wrapper .nested-category-breadcrumb-list-item .nested-category-breadcrumb-link {
		margin-left: 1vw !important;
	}
}

 

Screen Shot 2023-09-21 at 8.11.32 AM.png

Screen Shot 2023-09-21 at 8.12.00 AM.png

Edited by cinnamoncat
Link to comment

#1. This code will move Breadcrumb from Additional Info to current Breadcrumb position + Hide current breadcrumb

image.thumb.png.8f3404d0c4d19fffe9dba3d2352719f9.png

#2. What is problem with the code? Your code is CSS code in Custom CSS box, my code is in Code Injection > Footer code

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...
On 9/22/2023 at 3:00 AM, tuanphan said:

#1. This code will move Breadcrumb from Additional Info to current Breadcrumb position + Hide current breadcrumb

image.thumb.png.8f3404d0c4d19fffe9dba3d2352719f9.png

#2. What is problem with the code? Your code is CSS code in Custom CSS box, my code is in Code Injection > Footer code

#1 Unfortunately, that did not happen, as shown by my screenshots.

#2 I was just trying to provide more information in case it would be helpful...won't do that ever again.

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.