Support » Theme: Exray » functions.php modification gone bad

  • Resolved Doug99

    (@doug99)



    Help! I love exray,it is perfect. however I attempted to fine-tune a plugin by modifying the functions.php file. this immediately broke the site and now I cannot access the code to change it back. the hosting company (wpengine) told me to use ftp to download the funtions.php to folder, then modify if from there, then re-send it using ftp.

    that is a great idea, however, I cannot find the functions.php file under the exray theme on the hosting server. Can someone tell me how to get out of this mess? I need to change the functions.php file back to the way it was….where is this file located in the folders on the server….

    thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello!

    The plugins’ files are located under /wp-content/plugins/ Here there should be a folder with your plugin’s name, inside that a functions.php file. By the way, for quick fix, if you rename the your plugin folder’s name, it will deactivate it in WordPress, so it will no longer generate an errora and the site will work.

    I hope this helps, if you need any assistance, just post here.

    Greetings,
    Balint

    Theme Author hxh90

    (@hxh90)

    Hi Doug99,

    You have to remove both Exray and your problematic plugin directory, then re-download both of it to get the fresh unmodified files. Most of the time, It usually fix the blank white page error without problem.

    Thank you (both of you) for the advice. I use WPengine for hosting and as it turns out, they do automated daily backups. The backed up my site to the previous unmodified version within about 5 minutes. So that was great. However, that led me to research this a bit…the fact that exray is built on Twitter Bootstap is, apparently, what made the fix problematic- the files are in different places than they normally would be, and are not as accessible as they normally might be in a non-bootstrap environment…and by saying that, I say it as someone who is not familiar with boostrap, so to me, it was more of a firewall to getting to the code I needed. that being said, I have now investigated twitter bootstrap more carefully, read some tutorials, and am convinced it is a great choice for the developer to have used it, but it means I need to learn how it works to be able to go in and make some of the changes I was already capable of making in other themes. Great theme Septian, I love it, and I plan to use it permanently….keep up the good work.

    Thank you (both of you) for the advice. I use WPengine for hosting and as it turns out, they do automated daily backups. The backed up my site to the previous unmodified version within about 5 minutes. So that was great. However, that led me to research this a bit…the fact that exray is built on Twitter Bootstap is, apparently, what made the fix problematic- the files are in different places than they normally would be, and are not as accessible as they normally might be in a non-bootstrap environment…and by saying that, I say it as someone who is not familiar with boostrap, so to me, it was more of a firewall to getting to the code I needed. that being said, I have now investigated twitter bootstrap more carefully, read some tutorials, and am convinced it is a great choice for the developer to have used it, but it means I need to learn how it works to be able to go in and make some of the changes I was already capable of making in other themes. Great theme Septian, I love it, and I plan to use it permanently….keep up the good work.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘functions.php modification gone bad’ is closed to new replies.