Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #206535

    Hi,
    I modified enfold for my client, who wants to have different layoersliders depending on page and category. Therefor I added this code to the head:

    <?php if (is_home()) echo do_shortcode('[av_layerslider id="3"]');?>
    <?php if (is_single()) echo do_shortcode('[layerslider id="1"]');?>

    since the last update, the content in the slider is just white. How come?

    #206550

    Hi benzrecordings!

    Are you using Layer Slider as a standalone plugin? If not, LayerSlider shortcode does not work with Enfold. Can you elaborate? What exactly you would like to achieve?

    Regards,
    Yigit

    #206740

    Hi,
    Ok I see. I now uploaded Layerslider Plugin as standalone and add this line to my child-theme function:

    add_theme_support( ‘deactivate_layerslider’ );

    unfortunately this di not work. I had to remove this line from the main theme function as well:

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

    Now it works. Unfortunately this change gets lost every time I update the theme! Is there any solution to make this function inactive in my child theme functions? So that I can make updates without any problem?

    #206750

    Hi!

    Maybe the quotes (‘) are interpreted wrong – try to use this code instead

    
    add_theme_support('deactivate_layerslider');
    

    and insert it into your child theme functions.php file (after

    #206797

    Cool that worked! Thanks a lot for this support!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘layerslider shortcode does not render the slider’ is closed to new replies.