Altered functions.php - reverted to original, now nothing will load. (4 posts)

  1. MaMaConference
    Posted 2 years ago #


    I need help as I think I have done something stupid and I am too much of a newbie to fix it myself.

    Whilst trying to add something to the site, a piece of code was added to the folder functions.php which did not seem to work - I removed the code that was added and now it is back to its original which is this -

     * Sets up the theme by loading the Mysitemyway class & initializing the framework
     * which activates all classes and functions needed for theme's operation.
     * @package Mysitemyway
     * @subpackage Functions
    # Load the Mysitemyway class.
    require_once( TEMPLATEPATH . '/framework.php' );
    # Get theme data.
    $theme_data = get_theme_data( TEMPLATEPATH . '/style.css' );
    # Initialize the Mysitemyway framework.
    	'theme_name' => $theme_data['Name'],
    	'theme_version' => $theme_data['Version']

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]


    When I click Update Page, it takes me to a blank page - I can go back to the folder, but nothing else, whether in the back-end or front, will now load.




  2. MaMaConference
    Posted 2 years ago #

    I should also add that the website was not designed by me, and that all other sites on my browser are working and loading correctly.

  3. esmi
    Forum Moderator
    Posted 2 years ago #

    Re-upload a fresh copy of the theme using FTP.

  4. MaMaConference
    Posted 2 years ago #

    Awesome, just watched a youtube vid on it as have not done before.
    Just re-upload the code above?

    Thanks so much.

Topic Closed

This topic has been closed to new replies.

About this Topic