Auto Update Footer Copyright Year in Squarespace

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ม.ค. 2025

ความคิดเห็น • 38

  • @SaraWhiteChi
    @SaraWhiteChi ปีที่แล้ว +1

    Chris, you are the *best!* I spent too much time yesterday trying to solve this, best I came up with was hiding the warning message (s/o Squarespace Forum). Was still giving me a little grief, but your tutorial solved it beautifully, thank you! 👏

    • @SEWebDesign
      @SEWebDesign  ปีที่แล้ว

      I'm so glad this helped! Thanks for watching!

  • @DayaCurley
    @DayaCurley ปีที่แล้ว

    I cannot describe how perfectly timed and helpful this was! I was pulling my hair out and this is exactly the issue I couldn't find anyone talking about. Thank you!

    • @SEWebDesign
      @SEWebDesign  ปีที่แล้ว

      Great, I'm glad it was helpful!

  • @tommi-tv
    @tommi-tv ปีที่แล้ว

    I'm so grateful for your helpful CSS code solutions! 🙏 Thank you!

  • @WeronikaSalach
    @WeronikaSalach ปีที่แล้ว +1

    What a brilliant little trick, thanks! :)

  • @MeganBennettAUS
    @MeganBennettAUS ปีที่แล้ว

    Thank the universe for you sharing this. Keeps everything so much nicer. Cheers and Thank You!

    • @SEWebDesign
      @SEWebDesign  ปีที่แล้ว

      You are welcome Megan!

  • @sonyaj9333
    @sonyaj9333 ปีที่แล้ว

    Thank you so much! You described the issue perfectly and this code is wonderful!

    • @SEWebDesign
      @SEWebDesign  ปีที่แล้ว

      I'm so glad to hear it!

  • @luxlessons
    @luxlessons ปีที่แล้ว

    Hi there! Great code, thank you so much for this. Is there a way to adjust the function so it merely displays the current day and month, as in "Aug 22"? Highly appreciate the amazing work you do.

    • @SEWebDesign
      @SEWebDesign  ปีที่แล้ว

      Here are all of the js date methods: www.w3schools.com/js/js_date_methods.asp

  • @sfphotogirl
    @sfphotogirl ปีที่แล้ว

    Thanks, Chris! The footer is the clunkiest part of Fluid Engine.

    • @SEWebDesign
      @SEWebDesign  ปีที่แล้ว

      I'm glad this will help!

  • @dylansneed4974
    @dylansneed4974 ปีที่แล้ว +1

    thanks, chris! super helpful.

    • @SEWebDesign
      @SEWebDesign  ปีที่แล้ว

      I'm glad, you are welcome!

  • @david.robertson.photography
    @david.robertson.photography ปีที่แล้ว +1

    Thank you...works perfectly 🙏

  • @KimyPops95
    @KimyPops95 ปีที่แล้ว

    Super helpful! Thanks so much 🙏

    • @SEWebDesign
      @SEWebDesign  ปีที่แล้ว

      I'm glad, you are welcome!

  • @mommasoto
    @mommasoto 8 หลายเดือนก่อน

    works great. I get an underline on my date though. I assume it's the default so I just need to turn that off for links

    • @SEWebDesign
      @SEWebDesign  8 หลายเดือนก่อน

      If you copy the code from my blog post in the description it should hide the line!

  • @BestSelfMedia
    @BestSelfMedia ปีที่แล้ว

    Very helpful...thank you!

  • @fezenstein
    @fezenstein ปีที่แล้ว

    Am I missing some extra code - i've used your split nav and this one for a site - put all the codes in - (i have nothing in the header code injection area), only the 2 footer code injections. ? Split nav just has 2 stacked nav items on each side / and this date one doesn't change the link?

    • @fezenstein
      @fezenstein ปีที่แล้ว

      AND putting that code in to the footer area - made my archive displays not work? i think i'm missing something.

    • @SEWebDesign
      @SEWebDesign  ปีที่แล้ว

      It could be your link. Make sure it is linked exactly as I have it! Also make sure you don't have any errors that could be breaking things.

    • @fezenstein
      @fezenstein ปีที่แล้ว

      @@SEWebDesign
      (function() {
      var footerYear = document.querySelector('footer a[href="#[date]"]');
      (index):2428 Uncaught TypeError: Cannot set properties of null (setting 'innerHTML')
      at (index):2428:108
      at (index):2428:189
      footerYear.innerHTML = "";
      footerYear.appendChild(document.createTextNode(new Date().getFullYear()));
      }
      )();

    • @SEWebDesign
      @SEWebDesign  ปีที่แล้ว

      @@fezenstein I'm guessing it is probably that your footer link is not set up correctly which is why it can't find the link to update (null)

    • @fezenstein
      @fezenstein ปีที่แล้ว

      @@SEWebDesign
      © date Rachel Wilson. All rights reserved.

  • @tiani.complexity.lounge
    @tiani.complexity.lounge ปีที่แล้ว

    For some reason mine stopped working and just show a hyperlinked word "date"

    • @SEWebDesign
      @SEWebDesign  ปีที่แล้ว

      You need to be on the business plan or higher for code injection to work.

  • @rolandvandenhout
    @rolandvandenhout ปีที่แล้ว

    H-E-R-O!!!