Jump to content

samasplen

Circle Member
  • Posts

    8
  • Joined

  • Last visited

Posts posted by samasplen

  1. hey again @rwp! You kindly directed me here from the other forum. Any further help really would be so appreciated! I must admit there's a bit of guess work going on here from my end but this is where I'm at with it... I've copied the code from above and added in links to the images I uploaded via the 'manage custom files' section in Custom CSS. I've also added in all the code from jQuery 3.x and then pasted everything into the code injection for the Header section (not sure if this is the best location for it?). Do you know where I'm going wrong..?  My site and password is above and the code is below:

     

    <script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>

    <script>
      var topIMG = "https://static1.squarespace.com/static/5ede1a2e999dc0531d6f9ebf/t/5ee8e35dfcadf46aef884a77/1592320861718/Eleven_circle_solo.png";
    var sclIMG = "https://static1.squarespace.com/static/5ede1a2e999dc0531d6f9ebf/t/5ee8d2ecb1f80f408deb0b1e/1592316654032/Eleven_lockup_white02.png";

    $('img[alt="Eleven"]').attr("class", "logo")

    $(window).scroll(function() {
       var value = $(this).scrollTop();
       if (value > 50)
          $(".logo").attr("src", sclIMG);
       else
          $(".logo").attr("src", topIMG);
    });</script>

  2. 38 minutes ago, tuanphan said:

    Add to Home > Design > Custom CSS

    
    @media screen and (max-width:767px) {
    .homepage #page section:first-child {
        min-height: 30vh !important;
        height: 50vh !important;
        margin-top: 90px;
    }
    }

     

    Thanks so much! That's done the job with a bit of tweaking to the margins!

     

    Like I say, is there anyway to do the same to the video half way down the page? I thought changing the section to 'third-child' might work but no dice

  3. On 7/1/2020 at 10:35 AM, tuanphan said:

    Add to Home > Design > Custom CSS

    
    @media screen and (max-width:767px) {
    .homepage #page section:first-child {
    	min-height: 40vh !important;
    }
    }

     

    Thanks @tuanphan - unfortunately that hasn't worked. The video is still cropping. I'm using squarespace 7 .1 if that makes any difference? 

    I'd also like to apply the same to the background banner video that appears half way down the page, if we can get this to work. I.e to force 100% width

     

     

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