Jump to content

moonlitdesign

Circle Member
  • Posts

    139
  • Joined

  • Last visited

Posts posted by moonlitdesign

  1. 3 hours ago, tuanphan said:

    You can add code to Homepage Header Code Injection, instead of Sitewide Code Injection Footer

    With Mobile, change code to this

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
    <script>
    $(function(){
     var visibleTop = 800;
      $(window).scroll(function() {
        var scroll = getCurrentScroll();
          if ( scroll >= visibleTop ) {
               $('header#header').addClass('test-something');
            }
            else {
                $('header#header').removeClass('test-something');
            }
      });
    function getCurrentScroll() {
        return window.pageYOffset || document.documentElement.scrollTop;
        }
    });
    </script>
    <style>
      .header-display-mobile img {
        opacity: 0 !important;
    }
    header#header.test-something .header-display-mobile img {
        opacity: 1 !important;
    }
    </style>

     

    Thank you so much you're incredible!!

    out of interest, do you know how to delay the transition of the large moonlit logo image on the homepage? i would like the image to overlap it on scroll first before transitioning away. not essential but i tried a few things with no luck! 

    www.moonlitdesign.uk/home-old

    #block-yui_3_17_2_1_1710265456616_12284

  2. 35 minutes ago, tuanphan said:

    Can you share code you used for desktop?

    it is in the individual home page > advanced > code injection

     

    <script>
      $(window).scroll(function(){
      var scroll = $(window).scrollTop();
      if(scroll > 100){
        $('header#header').addClass('scrollNav');
      }
      else{
        $('header#header').removeClass('scrollNav');
      }
        
    });
    </script>
    <style>
      
      
      header#header img {
        opacity: 0;
        transition: all 0.3s;
    }
      
      
    .scrollNav img {
        opacity: 1 !important;
        transition: all 0.3s;
    }
      
      

      
    </style>

  3. 5 hours ago, Web_Solutions said:

    Add these code on Custom CSS panel in Website Utilities Website Tools > Custom CSS.

    .blog-basic-grid .image-wrapper img {
        left: 0 !important;
        top: 0 !important;
        padding: 8px !important;
        box-sizing: border-box !important;
    }

     

     

    Screenshot_157.png

    thank you so much, really appreciate your help worked perfectly!!!

  4. On 4/13/2024 at 8:56 AM, tuanphan said:

    Add this code to Website > Website Tools > Code Injection > Footer

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
    <script>
    $(function(){
     var visibleTop = 800;
      $(window).scroll(function() {
        var scroll = getCurrentScroll();
          if ( scroll >= visibleTop ) {
               $('header#header').addClass('test-something');
            }
            else {
                $('header#header').removeClass('test-something');
            }
      });
    function getCurrentScroll() {
        return window.pageYOffset || document.documentElement.scrollTop;
        }
    });
    </script>
    <style>
      header#header img {
        opacity: 0 !important;
    }
    header#header.test-something img {
        opacity: 1 !important;
    }
    </style>

     

    thank you so much! is there a way to change the code to only happen on the homepage, and only on mobile? 

  5. Hey, i'm looking to set a time delay on the mobile header sticky nav logo.

    on the homepage only, i would love it to enter / transition in when you hit the second section of the homepage.

    i.e the 'guiding soulful wedding creatives..' bit, once you've scrolled past the big main sticky logo image. 

     

    i believe i've got it to do this on desktop, but i need a different time set for mobile, is this possible? i believe its a @tuanphan bit of code i originally used in home settings > advanced > code injection

     

    www.moonlitdesign.uk/home-old

  6. Hey @tuanphan i can't believe it my menu has broken again some how hahah!!!

    the thing is it works perfectly when opening it from content pages, so it's something on the homepage that is messing with it. 

    would love to know any insights you have on this.

    I feel like there must be some code that i need to wrap in a desktop media query, but i have no idea which one. 

     

    IMG_6839.jpg

    IMG_6840.jpg

  7. Hi there, not sure what or why, but for some reason my type writer text effect that is in the footer has stopped working but only on the homepage. is there an obvious obstruction here that i'm missing? the homepage is the only page where there is also another type writer text effect code block on the landing page, so i'm assuming it's that but i don't know why!

    www.moonlitdesign.uk/home-old

    -bottom left on footer: • serving internationally 

    thank you 🙂

  8. @tuanphan hey ! i've used some of your code that i've found around on the forum to try and create a header shrinking effect. i'm not super happy with desktop but i can live with it. on mobile however, i'd really like help with the following:

    - i'm wondering if there is a way to delay the shrink nav logo appearing until you have scrolled to the second section of my homepage only on mobile! 

    www.moonlitdesign.uk/home-old

    fingers crossed and thank you!!!

     

  9. 8 hours ago, tuanphan said:

    Use this CSS code

    @media screen and (min-width: 768px) {
    [data-section-id="65e07302487e8725e7601b17"] button.user-items-list-carousel__arrow-button {
        opacity: 1 !important;
        transform: unset !important;
    }
    [data-section-id="65e07302487e8725e7601b17"] .user-items-list-carousel__arrow-button--left:before {
        content: "( PREV )";
        font-size: 13px;
    }
    [data-section-id="65e07302487e8725e7601b17"] .user-items-list-carousel__arrow-button--right:before {
        content: "( NEXT )";
        font-size: 13px;
    }
    [data-section-id="65e07302487e8725e7601b17"] .user-items-list-carousel__arrow-button--left:after,
    [data-section-id="65e07302487e8725e7601b17"] .user-items-list-carousel__arrow-button--right:after {
        display: none;
    }}

     

    fantastic thank you so much!

     

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