How to restore a modified php file

Support Area Forums Selfie How to restore a modified php file

Viewing 12 posts - 1 through 12 (of 12 total)
URL to the page in question: http://www.bodhi.it
  • Author
    Posts
  • #27977
    Massimo Bonamici
    Participant

    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

    #27984
    Bill Robbins
    Moderator

    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

    #27997
    Massimo Bonamici
    Participant

    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

    #28006
    Bill Robbins
    Moderator

    So sorry about that Bodhi 🙁

    Let me know if I can help out,
    Bill

    #28009
    Massimo Bonamici
    Participant

    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!

    #28012
    Bill Robbins
    Moderator

    Hey Bodhi take a look back at this post and see if it helps: https://support.organizedthemes.com/forums/topic/multi-question-from-an-unsavvy-user/

    #28013
    Massimo Bonamici
    Participant

    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

    #28014
    Bill Robbins
    Moderator

    Add some text to the footer text option in your theme options. That will trigger the change there.

    #28015
    Massimo Bonamici
    Participant

    That did the trick!
    The last one… how to change the color of the link in the footer?

    #28016
    Bill Robbins
    Moderator

    It’s in that other topic as well.

    #28017
    Massimo Bonamici
    Participant

    Thanks!

    #28018
    Bill Robbins
    Moderator

    Anytime 🙂

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘How to restore a modified php file’ is closed to new replies.