CRMarketing Posted June 27 Posted June 27 I'm looking for assistance in creating a custom code and/or markdown for the footer of my alcsrq.com website. I would like the code to be centered, white text at 60% size. I would like the 2024 date to automatically update each year, and the links to the two referring sites open in a new window. All on the same line. Can anyone help?
CRMarketing Posted June 28 Author Posted June 28 @paul2009 @creedon @tuanphan - you've been so helpful before, any thoughts on this?
creedon Posted June 28 Posted June 28 From what I can see the use of markdown blocks doesn't get you anything you can't get with a text block. And, the text block will allow you to link and open in a new tab. If you have something going on in the markdown blocks we can't see from our outside view, please let us know. It is possible, in markdown blocks to enter HTML, or a least the specification says you can, whether SS will do the right things, is another question. You can create links like you want manually. <a href="[ enter your url here repacing square brackets ]" target="_blank"> [ enter your link text here repacing square brackets ] </a> As to changing the year I know of no code that does this. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.
creedon Posted June 29 Posted June 29 Are you on the business plan or above? What plan you are on may effect answers. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.
Solution paul2009 Posted June 29 Solution Posted June 29 On 6/27/2024 at 4:00 PM, CRMarketing said: I would like the 2024 date to automatically update each year, and the links to the two referring sites open in a new window. All on the same line. @CRMarketing If your site supports the script, you should be able to add the following to a Markdown Block in the footer: <p>Copyright © <span class="copyright-year"></span> Abundant Life Church. All Rights Reserved. Images Provided by <a href="https://www.instagram.com/beautifulimagesbyapril/" target="_blank">Beautiful Images by April</a>. Website Crafted by <a href="https://www.cooperroadmarketing.com" target="_blank">Cooper Road Marketing</a>.</p> <script> document.addEventListener("DOMContentLoaded", function() { var crYearElement = document.querySelector(".copyright-year"); if (crYearElement) { var crYear = new Date().getFullYear(); crYearElement.textContent = crYear; } }); </script> The text is all placed in a paragraph tag, so the formatting will be determined by your paragraph style. You can override this if required by adding some inline styles. The paragraph contains the copyright statement and the two links, copied from the current site. In this example, the copyright year is empty initially and will be completed automatically once the page has loaded. Did this help? Please give feedback by clicking an icon below ⬇️ Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment