• Resolved webballs

    (@webballs)


    Not sure if this is the right place where to post.
    Anyway, I totally messed up my functions.php file and my site blew out.
    No, I don’t have any back up unless my provider has.

    The thing is that I actually didn’t change anything, I just typed something and then deleted id. Well I did have the bad idea to save before deleting it. But I’m pretty sure everything’s just the way it used to be right now.
    This is the last 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)
  • Have you tried downloading a new copy of your theme (you should be able to do so if you purchased the theme) and replacing that entire file – via Cpanel or FTP?

    Thread Starter webballs

    (@webballs)

    Well that makes sense 🙂 I had hoped to fix it without reloading and starting to set everything again but it’s still better than not having my page at all 🙂
    Thanks and sorry for the newbie question!

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

The topic ‘Problems with Function.php’ is closed to new replies.