How to restore a modified php file
URL to the page in question:
http://www.bodhi.it
-
Hi Bill,
I was playing with the possible settings but I made a mess!
I edited the file page-home-template.php and the cross icon in the right corner (the gallery icon) disappeared. Could you send me the original file so that I can restore it?
Thanks,
Bodhi
Good Morning Bodhi,
I think that’s something we’ve all done a time or three dozen. What you can do is download the theme from our downloads section (https://support.organizedthemes.com/downloads/). Then unzip the theme zip file and open up the page-home-template.php file in a plain text editor (not something like Word). Then copy the code out of it and paste it into your editor in WordPress.
That should let you restore the file. If you run into trouble, let me know.
Have a great week,
Bill
Thanks Bill!
It worked very well, too well in fact, as I lost the settings of my logo, color of the cross icon, link in the footer… 🙁
Next time I’ll pat extra care when changing something!
All the best,
Bodhi
So sorry about that Bodhi 🙁
Let me know if I can help out,
Bill
Two things I don’t manage:
1) to get the link pointing to another website in the footer, instead of the copyright notice, and
2) to change the color of the cross icon
Thanks Bill!
In the footer.php I have this
<div id=”footer”>
<?php if ( of_get_option(‘footer_text’, $single = true) != “”) : ?>
<p> SEE bodhiartworks.com</p>
but it doesn’t work. The text shown in the footer is: 2015 Bodhi
Add some text to the footer text option in your theme options. That will trigger the change there.
That did the trick!
The last one… how to change the color of the link in the footer?
It’s in that other topic as well.
- The topic ‘How to restore a modified php file’ is closed to new replies.