- This topic has 7 replies, 2 voices, and was last updated 2 years, 7 months ago by Andrew Misplon.
Tagged: year copyright footer
- AuthorPosts
- April 14, 2022 at 3:09 pm #16789
WebmasterEuropafietsersParticipantWe use the thema ‘Ultra Premium’. At the footer-settings of this theme we use the standard {copyright} {year} {site-title} as ‘Copyright text’
When I look at the footer (https://acceptatie-forum.europafietsers.nl) there is no year but only a ‘J’
as: © J Forum Europafietsers
in stead of: © 2022 Forum EuropafietsersWhat’s going wrong?
April 14, 2022 at 3:45 pm #16790
Andrew MisplonKeymasterHi, thanks for reaching out.
I haven’t seen this issue before. Is there a time you can run a plugin conflict test, or do you perhaps have a staging/testing site?
If possible, temporarily deactivate all plugins. Does the issue resolve?
April 14, 2022 at 3:53 pm #16792
WebmasterEuropafietsersParticipantUnfortunately, after having deactivated all plugins it still does not work, see the testing-site https://forumw.europafietsers.nl
April 14, 2022 at 4:47 pm #16794
Andrew MisplonKeymasterThanks for trying.
We could simplify the copyright function. Please, try the following:
– Install a new version of Ultra from Appearance > Themes > Add New > Upload Theme.
https://purothemes.com/wp-content/uploads/2022/04/ultra.2.6.5-beta.zip
I’ve wrapped in the copyright function in a function_exists check so we can overwrite it.
– Next, install the Code Snippets plugin https://wordpress.org/plugins/code-snippets/.
– Go to Snippets > Add New in WordPress. Name the snippet as required. Add the following in the snippet body:
if ( ! function_exists( 'ultra_footer_copyright_text_sub' ) ) : /** * Insert footer text from theme settings. */ function ultra_footer_copyright_text_sub( $copyright ) { $site_title = '<a href="' . esc_url( home_url( '/' ) ) . '">' . get_bloginfo( 'name' ) . '</a>'; return str_replace( array( '{site-title}', '{copyright}', '{year}' ), array( $site_title, '©', date( 'Y' ) ), $copyright ); } endif;
Enable the option to run the snippet on the site front-end. Save and Active.
Kindly copy the above function from the forum and not from email, as email sometimes changes the inverted comma formatting.
Does the above help?
Thanks
April 14, 2022 at 5:04 pm #16795
WebmasterEuropafietsersParticipantI have to download this zip-file first, I assume?
I have done this and installed it. A message appears: The uploaded file exceeded the upload_max_filesize command in php.iniAnd now?
April 14, 2022 at 5:13 pm #16796
Andrew MisplonKeymasterThe new version of the theme must be installed first.
You can either adjust your file upload limit in your php.ini file, or if you have FTP access you can unzip the theme folder and then drag the unzipped folder into /wp-content/themes/ on your staging site server.
April 15, 2022 at 3:01 pm #16810
WebmasterEuropafietsersParticipantI have changed the max_size option into 4MB and now it is possible to install the new version (update the old-version).
I have installed the plugin Code Snippets and added the code and yes, the year is now displayed correctly.
Thank you very much!April 15, 2022 at 6:49 pm #16811
Andrew MisplonKeymasterThanks for the update. I’m glad to hear the change worked and the date is now displayed correctly.
All the best with your site.
Kind regards
Andrew
- AuthorPosts
The topic ‘In footer just a J in stead of the year’ is closed to new replies.