WordPress.org

Forums

[closed] Insert Meta Slider into Header (4 posts)

  1. NYSGANews
    Member
    Posted 1 year ago #

    Hello. I am trying to insert the Meta Slider plug-in into my header. These are the instructions that the meta slider site gives me:

    How do I include a slideshow in the header of my site?
    You will need to paste the "Template Include" code into your theme (you can find this in the 'Usage' section underneath the slideshow settings)

    Go to Appearance > Editor in WordPress
    Edit a file called 'header.php' (or similar)
    Find the correct place to add it (for example above or below the logo)
    Paste in the code and save.
    If you want to include the slideshow on your homepage only, use this code:

    <?php
    if (is_front_page() || is_home()) {
        echo do_shortcode("[metaslider id=123]"); //replace 123 with slider ID
    }
    ?>

    Now, I understand and am able to get to the 'header.php'. However, once I am there, I do not know where to insert the meta slider code into the header code. I am not well-versed in code and I do not want to seriously alter my blog.

    Please help!!

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    First, identify what slider plugin you are using and then post in that plugin's dedicated forum via its page in the Plugin Repository.

  3. NYSGANews
    Member
    Posted 1 year ago #

    Okay, thank you.

  4. esmi
    Forum Moderator
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic