Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #842686

    I have put this line at the bottom of header.php

    <?php echo do_shortcode(‘[av_layerslider id=”2″]’); ?>

    it is blank on all pages, except this one:

    https://healthriskcenter-umd.org/resources/events/

    where the layerslider was added to the Advanced Layout Editor…

    #843870

    Hey Nancy,

    You can call the Layer Slider in these two ways:

    View post on imgur.com

    
    <?php layerslider(1) ?> or [layerslider id="1"]
    

    So you don’t need the “do_shortcode” part.
    Best regards,
    Victoria

    #844031

    Actually – that does not work. the only way to call layerslider from a script is to remove the built-in version:

    add_theme_support( ‘deactivate_layerslider’ );

    and then install it yourself. Then you can call it from php.

    Nancy

    #844938

    Hi Nancy,

    Well, this does not sound right, but if it’s working for you, then you can use this solution.

    Do you need any more help from us?
    Best regards,
    Victoria

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.