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! 👏
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!
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.
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?
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! 👏
I'm so glad this helped! Thanks for watching!
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!
Great, I'm glad it was helpful!
I'm so grateful for your helpful CSS code solutions! 🙏 Thank you!
No problem!
What a brilliant little trick, thanks! :)
No problem!
Thank the universe for you sharing this. Keeps everything so much nicer. Cheers and Thank You!
You are welcome Megan!
Thank you so much! You described the issue perfectly and this code is wonderful!
I'm so glad to hear it!
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.
Here are all of the js date methods: www.w3schools.com/js/js_date_methods.asp
Thanks, Chris! The footer is the clunkiest part of Fluid Engine.
I'm glad this will help!
thanks, chris! super helpful.
I'm glad, you are welcome!
Thank you...works perfectly 🙏
No problem!
Super helpful! Thanks so much 🙏
I'm glad, you are welcome!
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
If you copy the code from my blog post in the description it should hide the line!
Very helpful...thank you!
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?
AND putting that code in to the footer area - made my archive displays not work? i think i'm missing something.
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.
@@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()));
}
)();
@@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)
@@SEWebDesign
© date Rachel Wilson. All rights reserved.
For some reason mine stopped working and just show a hyperlinked word "date"
You need to be on the business plan or higher for code injection to work.
H-E-R-O!!!
Haha happy to help!