Viewing 26 posts - 1 through 26 (of 26 total)
  • Author
    Posts
  • #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~

    #203464

    Hey 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,
    Ismael

    #203498

    Hi~
    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(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~

    #203602

    Hey!

    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,
    Ismael

    #203987
    This reply has been marked as private.
    #203989
    This reply has been marked as private.
    #203994

    Hey!

    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!
    Ismael

    #203997

    Did 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″.

    #203998

    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(endless loading).

    #203999

    hey 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,…

    #204001

    something 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

    #204004

    Very detailed haha^_^

    #204006

    Hey!


    @wholereneducation
    – did you add the

    
    add_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,
    Peter

    #204032

    oufff,, 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 !!

    #204037

    Hey!

    Great, glad it worked for you :)

    Cheers!
    Peter

    #204038

    oups 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 !!!

    #204048

    Hi!

    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,
    Peter

    #204055

    unfortunatly 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 !!!

    #204059

    Hey!

    Is the shortcode working on a regular page only using the default WordPress visual editor?

    Best regards,
    Devin

    #204062

    yes 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 !!

    #204065

    Can 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?

    #204068
    This reply has been marked as private.
    #204082

    I added it in to a text block without issue. You can see it working on that page you referenced.

    #204100
    This reply has been marked as private.
    #204124

    Hey!

    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!
    Peter

    #204125

    thx 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 !!

Viewing 26 posts - 1 through 26 (of 26 total)
  • The topic ‘Disable Layerslider failed!!!’ is closed to new replies.