• Hi everyone,

    I followed an old thread in this forum to integrate Meta Slider into the header of the Twenty Seventeen theme.

    I am running WordPress 4.9.6 with a Twenty Seventeen child theme and the Meta Slider 3.7.2 plugin

    I inserted this line at the bottom of the header.php:

    <?php
    echo do_shortcode(“[metaslider id=144]”);
    ?>

    Unfortunately, this places the Slider not into Twenty Seventeen’s header, but below:

    https://fotosengmueller.com/wp/

    It would be great to hear from you on this,

    best,

    geb

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Geb,

    Can you copy and share the complete code of Header.php where you have added the shortcode to gist.github.com or pastebin and share the link here?

    I will be happy to take a look ??

    Thread Starter gebseng

    (@gebseng)

    Hi @nagpai,

    Thanks a lot, that’s very kind of you!

    The link is here:
    https://pastebin.com/REkYTvTU

    The added code is at line 33, the previous, now commented, code at line 31.

    best,

    geb

    • This reply was modified 6 years, 5 months ago by gebseng.

    Testing this on a local test site. Thanks :). i will keep you posted here.

    Within the code you sent Can you try changing line 31

    /* <?php get_template_part( 'template-parts/header/header', 'image' ); ?> */

    to
    <?/* php get_template_part( 'template-parts/header/header', 'image' ); */?>

    That’s the way to comment off php code. I tried this and it seems to be working correctly on the theme i have here :). Let me know if it works fine.

    Thread Starter gebseng

    (@gebseng)

    Thank you so much, it works great now!

    best,

    geb

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Meta Slider in Twenty Seventeen header’ is closed to new replies.