-
AuthorPosts
-
December 24, 2013 at 3:09 am #203426
Hi~
I tried to disable layerslider use the code:”add_theme_support( ‘deactivate_layerslider’ );”. But It didn’t work. When I uploaded the layerslider plugin from outside, it shows”Fatal error: Cannot redeclare layerslider_load_lang() (previously declared in /home/admin/wholeren.com/wp-content/themes/enfold/config-layerslider/LayerSlider/layerslider.php:118) in /home/admin/wholeren.com/wp-content/plugins/LayerSlider/layerslider.php on line 119″.
Could you help me with that ? I need use the shortcode of layerslider! thanks~December 24, 2013 at 6:24 am #203464Hey wholereneducation!
Please add this on your functions.php:
add_theme_support( ‘deactivate_layerslider’ );
You can also find this code on line 392:
if(!current_theme_supports('deactivate_layerslider')) require_once( 'config-layerslider/config.php' );//layerslider plugin
Replace it with:
//if(!current_theme_supports('deactivate_layerslider')) require_once( 'config-layerslider/config.php' );//layerslider plugin
Install the layer slider plugin after. Remove browser cache or test it on another browser.
Regards,
IsmaelDecember 24, 2013 at 7:37 am #203498Hi~
I tried the first way, it didn’t work. Then I tried the second. It worked after I added the “//”. But I cannot open the page editor, it ended up like this: (endless loading).
I tried another website to make sure it’s not the problem of my internet speed. Then I removed the “//” and it not “endless loading” anymore but the native layerslider still working!!! I don’t know what should I do
Please help me!!!!
Thanks~December 26, 2013 at 3:47 am #203602Hey!
Do you have any other plugins installed? Please post the login details here as a private reply. We would like to check it.
Best regards,
IsmaelDecember 31, 2013 at 6:39 am #203987This reply has been marked as private.December 31, 2013 at 6:48 am #203989This reply has been marked as private.December 31, 2013 at 7:46 am #203994Hey!
I accessed the website and the LayerSlider panel. It loads fine on my end. I used Chrome Windows 7. Please try to remove browser cache or test it on another browser:
Cheers!
IsmaelDecember 31, 2013 at 7:58 am #203997Did you deactivate the native layersider? I used this code:”//if(!current_theme_supports(‘deactivate_layerslider’)) require_once( ‘config-layerslider/config.php’ );//layerslider plugin. The endless loading problem was showed up after I deactivated the layerslider…
And here is my original question:”I tried to disable layerslider use the code:”add_theme_support( ‘deactivate_layerslider’ );”. But It didn’t work. When I uploaded the layerslider plugin from outside, it shows”Fatal error: Cannot redeclare layerslider_load_lang() (previously declared in /home/admin/wholeren.com/wp-content/themes/enfold/config-layerslider/LayerSlider/layerslider.php:118) in /home/admin/wholeren.com/wp-content/plugins/LayerSlider/layerslider.php on line 119″.
”December 31, 2013 at 8:00 am #203998I tried the first way, it didn’t work. Then I tried the second. It worked after I added the “//”. But I cannot open the page editor, it ended up like this: endless loading(endless loading).
December 31, 2013 at 8:19 am #203999hey ismael.
the endless loading is not in the layer itself, it’s on the regular page editor, the advanced page editor is no longer working, the page is loading endlessly and we can’t modify the pages to either add the images, layerslider, text,…
December 31, 2013 at 8:21 am #204001something broke the pages editor section (not the layer editor, i can create layers with the layerslider 5 that i just activated, but can’t put it on the page as when you click on pages, then a certain page, like about us or any other, it doesn’t show the contect to edit !! and load indefinitly), please help
December 31, 2013 at 10:51 am #204004Very detailed haha^_^
December 31, 2013 at 11:23 am #204006Hey!
@wholereneducation – did you add theadd_theme_support('deactivate_layerslider');
code to your child theme functions.php? If not you must insert the code at the very top of the parent theme functions.php below
<?php global $avia_config;
because the theme will check the if() condition immediately and if you declare the add_theme_support() code at the end of the functions.php file it’s too late.
Best regards,
PeterDecember 31, 2013 at 3:12 pm #204032oufff,, end of journey! finally worked, such a relief… thx Dude, (in fact I didn’t have the first code, thought it was one or the other but now got both in the php), hey “wholereneducation”, is it working for you as well !!
December 31, 2013 at 3:23 pm #204037Hey!
Great, glad it worked for you :)
Cheers!
PeterDecember 31, 2013 at 3:24 pm #204038oups i think i talked very soon, … it’s loading page contect but in the advanced page editor we no longer have the drag and drop icon for advanced layer slider !! is this a normal behavior after updating the layerslider or something broke somewhere !!!
December 31, 2013 at 3:48 pm #204048Hi!
No, the code I posted will also remove the LayerSlider element from the template builder. However you can simple paste the layerslider shortcode into a textblock to insert the layerSlider into the advanced template. The “LayerSlider” layout element only works with the bundled LayerSlider plugin files and you need to wait for a theme update i fyou want to use it with v5.
Regards,
PeterDecember 31, 2013 at 4:17 pm #204055unfortunatly up to now , the [layerslider id=”5″] is apprearing as is in the text block as well on the rendered page! (as shortcode text in the browswer window) Something special that i have to do to tell the textblock element that this is a shortcode !!!
December 31, 2013 at 4:27 pm #204059Hey!
Is the shortcode working on a regular page only using the default WordPress visual editor?
Best regards,
DevinDecember 31, 2013 at 4:39 pm #204062yes it is working with the default editor using shorcode, just pasted it in there and previewed changes and i could see it playing in the broswer !!
December 31, 2013 at 4:44 pm #204065Can you create a temporary admin login for us to take a look at the site live and post it here as a private reply along with a link to your site?
December 31, 2013 at 4:53 pm #204068This reply has been marked as private.December 31, 2013 at 5:14 pm #204082I added it in to a text block without issue. You can see it working on that page you referenced.
December 31, 2013 at 6:20 pm #204100This reply has been marked as private.December 31, 2013 at 7:25 pm #204124Hey!
We’ll definitely update the theme but I think Kriesi wants to wait some time. LayerSlider 5 introduced many new features and options and we need to test them with our theme first and tbh I think we should wait some weeks (2-3 weeks) with the update because I’m pretty sure that the first release of the 5.0 version is still a bit buggy and it’s always a good idea to wait some time until the other plugin users reported major bugs and the author fixed them. I recommend to report the “black shadow” bug to the layerslider plugin author because our theme does not modify the layerslider css or animation code.
Cheers!
PeterDecember 31, 2013 at 7:29 pm #204125thx a lot Dude, and 3 weeks i find it actually very quick, so I’m happy for that and can’t wait. I’ll report the black shadow to the layerslider team, now that i think about it the theme doesn’t change any of it’s properties as you said.
thx again and have good times. happy new year !!
-
AuthorPosts
- The topic ‘Disable Layerslider failed!!!’ is closed to new replies.