Another: Self Updating Footer Date Issue
I have another issue with "Self Updating Footer Date".
I have used the following provided by Brizy support with my footer.
<p style="color: #F4F9EC; text-align: center; font-family: montserrat, sans-serif!important;">
Website Name © <span id="copyright-year">2020</span>
<script>
document.querySelector('#copyright-year').innerText = new Date().getFullYear();
</script>
- All Rights Reserved</p>
This is a Wordpress site using Brizy plugin.
I had an error when trying to edit the 404 page using Brizy template. I have deleted it but still get and error when making a new 404 template page. All I can see is the year in left corner of the editor page. There are no Templates, Stories or Popups. All pages use the code above.
-
Hi Ray,
Thank you for reaching out to us.
Please try using the Sort Bock feature to find the block where the script was embedded and delete it.
This is demonstrated on this screencast - https://youtu.be/7n-6oaHKhjYIf this didn't help, we will need to check this directly from your website. Please add us as a user to your WordPress Dashboard and send the following details to: communitysupport@brizy.io
Community Post link: https://support.brizy.io/hc/en-us/community/posts/14820371926290
WordPress Admin URL:
Username
PasswordPlease make a full backup of your site as a precaution before providing us access.
Best regards,
Ariel H.0 -
Hello Ariel H
I have tried that and it didn't work. Also tried deleting pages, deactivating plugins, but also no luck with that either.
I would like to have a go at fixing this myself, what procedure would you follow to fix this yourself?
0 -
Hi Ray,
Thank you for the update.
Unfortunately, this is the only method I am familiar with for resolving the issue. If this didn't work for you, we will need access to your WP Admin page to conduct a more thorough investigation. If you have any concerns about your site's privacy, kindly create a staging version of your website where the issue can be reproduced. This will enable you to remove any pages causing privacy concerns.
Best regards,
Ariel H.0 -
OK here it is.
I have tried again with the staging site. Something odd is the footer has been deselected as global but I find the other page footers is still there. I have deleted a few of them.
0 -
Hi Ray,
I appreciate your cooperation on this issue.
We had to revert to earlier versions to gain access to this global block and eliminate the script - https://prnt.sc/Icb6_6Fg_U0B
Subsequently, we have re-installed the updated versions following the modification of the global block.
I've provided a link for downloading the previous versions here, should you need to address this in your production environment. Before using these older versions, it's advisable to create a full backup of your production site or to experiment with them in a staging environment first.Should you have any additional inquiries, please don't hesitate to reach out.
Best regards,
Ariel H.0 -
Can you please tell me where the error is, so that I can remove it on the production site.
What was the modification?
0 -
Hi Ray,
The issue is coming from the script that uses the document.write() function to display the date. Unfortunately, the solution previously recommended doesn't work with global blocks.
To resolve this, you will need to install the older versions, which will allow you to edit and remove the embedded script within the global block.
With the older versions of Brizy and Brizy Pro, you can edit your 404 template as usual. From there, you can delete the embed element and save the 404 template. You also have the option to replace the script, following the example provided in this link, so it will work on the new versions.
https://support.brizy.io/hc/en-us/community/posts/15294447509393Best regards,
Ariel H.0
Please sign in to leave a comment.
Comments
7 comments