WebCMS Posted August 2 Posted August 2 Copyright Line under General Configuration does not allow HTML to add links (however, it does allow JavaScript). Copyright Line is not editable by users and so, HTML may be allowed.
Jim M Posted August 2 Posted August 2 The Copyright line actually does support HTML. On my test community, I place in some HTML to render an icon logo with a container and it renders fine, along with a link. Marc 1
WebCMS Posted August 2 Author Posted August 2 4 hours ago, Jim M said: The Copyright line actually does support HTML. On my test community, I place in some HTML to render an icon logo with a container and it renders fine, along with a link. It allows me to add a relative/absolute links to the web-root like this <a href="/">Site.com</a>Â and saves but the page does not display the link in the footer. Maybe because our Footer Line has some JS to use current year value?
Jim M Posted August 2 Posted August 2 5 minutes ago, WebCMS said: It allows me to add a relative/absolute links to the web-root like this <a href="/">Site.com</a> and saves but the page does not display the link in the footer. Maybe because our Footer Line has some JS to use current year value? Yes, that is likely the issue as I do not have that customization 😉Â
WebCMS Posted August 2 Author Posted August 2 (edited) 3 minutes ago, Jim M said: Yes, that is likely the issue as I do not have that customization 😉 Not sure why the JS is conflicting with HTML as they use separate tags. Is there a YYYY template var that can be used in the footer instead of JS? Edited August 2 by WebCMS
Jim M Posted August 2 Posted August 2 2 minutes ago, WebCMS said: Not sure why the JS is conflicting with HTML as they use separate tags. Is there a YYYY template var that can be used in the footer instead of JS? Sorry, we would not be able to assist with custom development.
Ryan Ashbrook Posted August 5 Posted August 5 On 8/2/2024 at 1:39 PM, WebCMS said: Is there a YYYY template var that can be used in the footer instead of JS No, but as Jim said you can use regular HTML and JavaScript directly in the setting. 🙂 Copyright <script>document.write( new Date( ).getFullYear() );</script> Square Wheels and Gary 2
WebCMS Posted August 8 Author Posted August 8 (edited) On 8/5/2024 at 1:23 AM, Ryan Ashbrook said: No, but as Jim said you can use regular HTML and JavaScript directly in the setting. 🙂 Copyright <script>document.write( new Date( ).getFullYear() );</script> Yep, that's what we are using JS for YYYY. However, for some reason, the other custom link tags in the Copyright Line are rendering even though JS and HTML are using completely separate tags. You can try this - YYY will render but the Site.com link won't - <a href="/">Site.com</a> | Copyright © 2023-<script>document.write(new Date().getFullYear())</script> Site, Inc. Any pointers would be appreciated. We are not sure if it is the JS tag causing the issue and why. Edited August 8 by WebCMS
Ryan Ashbrook Posted August 8 Posted August 8 Working fine here. If it's longer than your example, you may be hitting a limit to how much text is allowed so I'd suggest reducing it a bit, or use the Footer HTML template in the theme settings instead for more fine-tuned control. EDIT: The link works, but because of CSS it's not highlighting differently then the rest of the text, for what it's worth. You would need some extra CSS for that.
WebCMS Posted August 8 Author Posted August 8 27 minutes ago, Ryan Ashbrook said: Working fine here. If it's longer than your example, you may be hitting a limit to how much text is allowed so I'd suggest reducing it a bit, or use the Footer HTML template in the theme settings instead for more fine-tuned control. EDIT: The link works, but because of CSS it's not highlighting differently then the rest of the text, for what it's worth. You would need some extra CSS for that. Thanks for trying it. We just found that it was a CSS issue and the link works in the footer now.
Recommended Posts