Title: Messed up functions.php
Last modified: August 22, 2016

---

# Messed up functions.php

 *  Resolved [webballs](https://wordpress.org/support/users/webballs/)
 * (@webballs)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/messed-up-functionsphp-1/)
 * Hi, Hope someone can help me!
    I messed up my functions.php file. Even though
   it seems to me that right now it’s just the way before I tried some changes. 
   But yet it doesn’t work This is the end part of the code, where the error is 
   supposed to be.
 *     ```
       /**
        * Layerslider API
        */
       function avada_layerslider_ready() {
       	if( class_exists('LS_Sources') ) {
       		LS_Sources::addSkins( get_template_directory().'/framework/ls-skins' );
       	}
       	if( defined( 'LS_PLUGIN_BASE' ) ) {
       		remove_action( 'after_plugin_row_' . LS_PLUGIN_BASE, 'layerslider_plugins_purchase_notice', 10, 3 );
       	}
       }
       add_action( 'layerslider_ready', 'avada_layerslider_ready' );
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [11 years, 1 month ago](https://wordpress.org/support/topic/messed-up-functionsphp-1/#post-5946991)
 * You can reupload the original functions.php file in your theme to resolve a syntax
   error.
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/messed-up-functionsphp-1/#post-5946992)
 * Already answered here:
 * [https://wordpress.org/support/topic/problems-with-functionphp-1?replies=2](https://wordpress.org/support/topic/problems-with-functionphp-1?replies=2)
 * Please do not post duplicate threads.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Messed up functions.php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/messed-up-functionsphp-1/#post-5946992)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
