Support » Plugin: MetaSlider » Slider PHP code location

  • Resolved pietr4s

    (@pietr4s)



    Hello,

    Instead of a static header image i would like to change it to an image slider. I want to use the shortcode or PHP code to display a slider in the header image location. I’ve looked in the “header.php” file but It seems the php code really needs to be in the “custom-header.php” file, I just don’t know where to put it.

    here’s the code for the image slider i’d like to use,
    <?php
    echo do_shortcode(“[metaslider id=184]”);
    ?>

    Theme: Nisarg

    Hopefully someone has done this before or can help me figure it out! thanks, Peter

Viewing 1 replies (of 1 total)
  • Plugin Contributor DNutbourne

    (@dnutbourne)

    Hi,

    The code for adding the slider appears correct.

    I would recommend asking the theme developers where to place this code, as they will have a better idea of the structure of the theme header.

Viewing 1 replies (of 1 total)
  • The topic ‘Slider PHP code location’ is closed to new replies.