Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #402545

    Hi,

    i want to add a LayerSlider above every post.
    I tried to get this done with:
    <?php while ( have_posts() ) : the_post(); ?>
    and my slider is:
    [layerslider id=”5″]
    But i don´t get it. :-(
    I didn´t know how to put the code in to the single.php and where.

    Cheers
    David

    • This topic was modified 9 years, 9 months ago by d1h.
    #402988

    Hi David!

    I don’t think that is going to work but you can try adding it around line 29 in the single.php file.

    <?php echo do_shortcode("[layerslider id = '5'"); ?>
    

    Best regards,
    Elliott

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