Hello,
So I’m having issues with my footer. Two issues, actually.
1. Is there anyway to include a dynamic year (i.e., will always display the current year) in the footer copyright? Right now, I’m simply typing the year out myself, but I’d like to have it so that it will automatically change when one year rolls over into the next.
2. My name has an apostrophe in it. When I put it into the footer with the apostrophe, a slash appears before the apostrophe that I didn’t put there. In other words, when I include the apostrophe that is supposed to be in my name in the sub-footer’s copyright text, it turns ‘ into \’ and I need that slash to not be there.
My website is http://www.daneoleary.com and the sub-footer/copyright is visible on all pages.
P.S. I’ve already tried using this code that I found via Google search: <?php echo date('Y'); ?> It didn’t work. When I viewed the copyright on my live site, the code disappeared as if the theme panel recognized that I’d given it a PHP code or whatever it’s called, but it didn’t actually put a dynamic year in there.
Also…
3. Is there a way to change “Contact us” to “Contact me” in the footer where I supply my email?
4. Is there a way to change the widgets in the footer? Or at least modify the ones already there? Specifically, I’d at least like the center widget showing the most recent content to say “RECENT” instead of “MORE NEWS” if possible. I saw where you can change the footer template, such as the number of columns, but I can’t seem to find where you can modify footer widgets.
-
This reply was modified 10 years by
DaneOLeary.
Well that’s good to know, but now the problem that I’m having is that I want to use the very first footer template, the one that has three columns, but I need to modify some of the content in those templates (change “Contact us” to “Contact me”, etc). When I go into Widgets under Appearance, I see Footer 1, Footer 2, and Footer 3, but there’s nothing in them for me to modify.
I fixed #2. In the Newsmag theme panel, I changed the apostrophe in my name to &-#-8-2-1-7-; (without the hyphens, of course) and now it shows my name correctly… apostrophe sans the slash.
Still needing help with 1, 3 and 4.
-
This reply was modified 10 years by
DaneOLeary.
Hi
1. Add this code in footer.php file: http://screencast.com/t/LKdBiLoyNL
3. Please follow this link to change the indicated text: http://screencast.com/t/Y4kLwdJxtol
4. Some footer template have predefined widgets which can’t be changed from theme panel or widgets area. To change theirs content you have to alter the code. In order to change MORE NEWS tile you have to edit td_footer_template_1.php and change this text: http://screencast.com/t/4zTm3TC1G2TB
Let me know how it goes.
Thanks!
Thanks very much for your help!
1. This was a very easy fix and took like a minute. What I’d wanted was to have the copyright symbol first, then my name, and the dynamic year last. The code you gave me makes it (C) 2015 Dane O’Leary and I wanted it (C) Dane O’Leary 2015. Is there a way to switch the copyright text you input in the theme panel with the dynamic date I just added? If there’s no simple way to do it, this is certainly good enough.
2 & 3. I tried to gain access to the “parts” folder so I could change those bits in the php files, but I was unable to get that deep into Newsmag using the WordPress Editor. Is there a way to edit those using the Editor? Or will I need some type of special program to change them, delete the them, and then re-upload it again with the modified php files?
Once I can gain access to that “parts” folder, I have no doubt that I’ll be able to make those changes and we’ll be right as rain. Thanks again!
You should ideally not edit files via the WordPress editor since you then have no backups. You should download theme via FTP, then on your PC/Mac, edit the files, keeping backup in case you mess something up. And keep track of changed files, as they will be over-written with theme updates.
As security measure you should also ideally disable the editor in WP so folks who get access to system through a vulnerability cannot rewrite core files or theme files.
Just some food for thought 🙂
Hi
You need to switch the function position like here: http://screencast.com/t/NsQ0pEGSd
Regarding the file editing you should consider Chris’s suggestion to make a full back-up before making any changes. In case somethings goes wrong you can get back and restore the site to the functional install. The WordPress editor doesn’t include all theme’s files, for security reasons I believe. To apply your customizations just edit the indicated file on your computer using a text editor, then upload it via FTP on your server.
Hope this help.
Thanks!
I DID IT! OMG I ACTUALLY DID IT!
Seriously, you don’t even understand what a feat this was. I’m not the most technologically savvy person and have never done any coding in my life. The apex of any coding I’ve ever done was the changes to my site’s copyright in the footer, that’s the most complicated thing I’ve ever done. I really thought this FTP stuff was going to be over my head, and I’m even using a CHROMEBOOK as my main computer right now, but I’ll be damned if I didn’t just figure it out… almost by accident!
Anyway, thank you very much for your help. You too, @neotrope. You’ve both been extremely helpful. I’m still in complete shock that I was able to do this.
Hi
@DaneOLeary glad you solved it and good luck on your project!
Thanks for your message!