Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #286051

    Sorry if this is repetitive question.
    How do I disable theme bundled version of layerslider ?

    #286056

    Hey revion!

    If you’re using a child theme insert this code into the functions.php file:

    
    add_theme_support('deactivate_layerslider');
    

    If you’re using the Enfold (parent) theme and no child theme open up enfold/functions.php and delete this line:

    
    
    if(!current_theme_supports('deactivate_layerslider')) require_once( 'config-layerslider/config.php' );//layerslider plugin
    
    

    Cheers!
    Peter

    • This reply was modified 10 years, 4 months ago by Devin.
    #286231

    Thank you. Do we need to repeat this process every time we update the theme/there is an update to the theme?

    #286265

    If you use a child theme – no
    If you don’t use a child theme: yes (as changes in the parent theme are overwritten after an update)

    • This reply was modified 10 years, 5 months ago by melonmelon.
    #286478

    Hey!


    @melonmelon
    : Thank you for the explanation. Yes, that’s correct.


    @revion
    : Please use a child theme in order to preserve the modifications on future updates. Refer to this link for more info: http://kriesi.at/documentation/enfold/using-a-child-theme/

    Regards,
    Ismael

    #306464

    The code to disable Layerslider in child theme should have been add_theme_support(‘deactivate_layerslider’);
    example was missing the semi-colon

    #306570

    Thanks for the heads up! I’ve fixed it in the OP :)

    #314864

    would be nice to have check mark of some sort to disable/enable included slider :)

    #314885

    Guys, after removing line in enfold/functions.php
    if(!current_theme_supports(‘deactivate_layerslider’)) require_once( ‘config-layerslider/config.php’ );//layerslider plugin

    when i open any page with aviya layout builder it is just spinning? Can someone help please?
    aviya builder not loading

    #314977

    Hey!

    Please don’t the line, just add this at the very bottom of functions.php:

    add_theme_support('deactivate_layerslider');
    

    Regards,
    Ismael

    #518827

    is it possible to deactivate the layerslider for specific sites:

    THIS ONE ISN`T WORKING – CAN YOU HELP

    
    if (  !is_home()  ) {	    add_theme_support("deactivate_layerslider");    }
    }
    
    • This reply was modified 9 years, 2 months ago by Raphael.
    #519096

    Hi,

    Not sure what you are trying to do there? The code is for removing the slider from the backend so checking if the page is not home won’t do you much good I think.

    Best regards,
    Rikard

    • This reply was modified 9 years, 2 months ago by Rikard.
Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.