Auto Update Footer Copyright Year in Squarespace

Поділитися
Вставка
  • Опубліковано 27 січ 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 2 роки тому

    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  2 роки тому

      Great, I'm glad it was helpful!

  • @tommi-tv
    @tommi-tv Рік тому

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

  • @MeganBennettAUS
    @MeganBennettAUS Рік тому

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

  • @sonyaj9333
    @sonyaj9333 Рік тому

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

  • @WeronikaSalach
    @WeronikaSalach Рік тому +1

    What a brilliant little trick, thanks! :)

  • @dylansneed4974
    @dylansneed4974 2 роки тому +1

    thanks, chris! super helpful.

  • @david.robertson.photography
    @david.robertson.photography 2 роки тому +1

    Thank you...works perfectly 🙏

  • @sfphotogirl
    @sfphotogirl Рік тому

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

  • @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!

  • @KimyPops95
    @KimyPops95 Рік тому

    Super helpful! Thanks so much 🙏

  • @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

  • @BestSelfMedia
    @BestSelfMedia Рік тому

    Very helpful...thank you!

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

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

  • @rolandvandenhout
    @rolandvandenhout 2 роки тому

    H-E-R-O!!!