-
AuthorPosts
-
July 2, 2014 at 6:16 am #286051
Sorry if this is repetitive question.
How do I disable theme bundled version of layerslider ?July 2, 2014 at 6:45 am #286056Hey 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, 3 months ago by Devin.
July 2, 2014 at 3:17 pm #286231Thank you. Do we need to repeat this process every time we update the theme/there is an update to the theme?
July 2, 2014 at 4:59 pm #286265If 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, 4 months ago by melonmelon.
July 3, 2014 at 4:43 am #286478Hey!
@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,
IsmaelAugust 19, 2014 at 6:59 pm #306464The code to disable Layerslider in child theme should have been add_theme_support(‘deactivate_layerslider’);
example was missing the semi-colonAugust 20, 2014 at 1:45 am #306570Thanks for the heads up! I’ve fixed it in the OP :)
September 8, 2014 at 6:05 am #314864would be nice to have check mark of some sort to disable/enable included slider :)
September 8, 2014 at 6:45 am #314885Guys, after removing line in enfold/functions.php
if(!current_theme_supports(‘deactivate_layerslider’)) require_once( ‘config-layerslider/config.php’ );//layerslider pluginwhen i open any page with aviya layout builder it is just spinning? Can someone help please?
September 8, 2014 at 11:57 am #314977Hey!
Please don’t the line, just add this at the very bottom of functions.php:
add_theme_support('deactivate_layerslider');
Regards,
IsmaelOctober 14, 2015 at 5:17 pm #518827is 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, 1 month ago by Raphael.
October 15, 2015 at 10:11 am #519096 -
AuthorPosts
- You must be logged in to reply to this topic.