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

    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?


    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?



    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?



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


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


    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.