WordPress.org

Forums

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

  1. MaMaConference
    Member
    Posted 1 year ago #

    Hello,

    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 -

    <?php
    /**
     * 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.
    Mysitemyway::init(array(
    	'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.]

    HOWEVER

    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.

    PLEASE HELP!

    http://www.mamaconference.co.uk

    RM

  2. MaMaConference
    Member
    Posted 1 year 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 1 year ago #

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

  4. MaMaConference
    Member
    Posted 1 year 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