Jump to content

popofglitter

Member
  • Posts

    77
  • Joined

  • Last visited

Posts posted by popofglitter

  1. https://pomegranate-fife-566s.squarespace.com/inquire

    password: cupcake

    I have a pop-up set up where I want users to stay on whichever page they land on if they press "enter", but the action options don't allow for a "this page" setting.

    I tried "/" but it just directs users to the home page, understandably.

    Any thoughts on how users can accept/enter and stay on the same page instead of being redirected to another page?

    Steps to reproduce:
    Go to https://pomegranate-fife-566s.squarespace.com/inquire
    Enter password 'cupcake'
    Press 'Enter' on the pop-up

    Actual results: user is redirected to home page
    Desired results: user stays on Inquire page

  2. 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.

  3. 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

  4. hi @Lesum I changed it back to margin-left and still only one column

    .header-nav-item a:hover {
        font-weight: bold;
    }
    
    .nested-category-breadcrumb-link {
      font-weight: bold;
    }
    .category-link {
      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: 1.5vw !important;
    	}
    }
    @media only screen and (max-width: 767px) {
        .products.collection-content-wrapper .list-grid {
            grid-template-columns: repeat(2,minmax(0,1fr)) !important;
        }
    }

     

  5. Hm, that did not seem to work. Here is all the CSS I currently have including your suggestion:

    .header-nav-item a:hover {
        font-weight: bold;
    }
    
    .nested-category-breadcrumb-link {
      font-weight: bold;
    }
    .category-link {
      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;
    }
    }
    @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: 0 !important;
        }
    }
    @media only screen and (max-width: 767px) {
        .products.collection-content-wrapper .list-grid {
            grid-template-columns: repeat(2,minmax(0,1fr)) !important;
        }
    }

     

  6. On 7/14/2022 at 5:27 PM, mike.bj said:

    Hi Paul, thank you for the tip, that's great.

    Noticed on mobile view, when you have the Sidebar option selected - it seems to display the categories as a list at the top.

    Hoping to learn if there's a way to change it so if there are lots of categories it displays as a dropdown?

    Thank you for any insight! Mike.

    Hi @mike.bj Did you ever find a resolution for this mobile issue? I'm also experiencing this problem.

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