• Resolved yxda

    (@yxda)


    I would like to use MetaSlider with Twentyeleven theme for the image in the header.
    I added <?php echo do_shortcode(‘[metaslider id=”114″]’); ?> in the header.php
    and replaced if ( $header_image ) :
    with
    if (is_home() || is_front_page()) : echo do_shortcode(“”); // replace 123 with your slideshow ID elseif ( $header_image ) :

    I do not know what went wrong, but the slideshow doesn’t work, only a static image shows in the header.

    Can anyone help how to replace the image in the header with a slideshow in twentyeleven theme using MetaSlider?

    Thank you

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter yxda

    (@yxda)

    Now, the static image is not replaced with the slideshow in the header but the slideshow is placed below it.

    Hi,

    Any luck? If you have the slideshow showing under the image, can you find the image and remove it?

    If not, can you share the URL?

    Thread Starter yxda

    (@yxda)

    Thank you. I can send the url to you in email if it helps. It is not my site. I am just helping.

    A part of MetaSlide user guide for Twenty Eleven Theme from 2014 said that:

    Recommended slideshow size: 1000 x 300. Go to Appearance > Editor. Select header.php from the right. Find (line 81):

    if ( $header_image ) :

    Replace with:

    if (is_home() || is_front_page()) : echo do_shortcode(“”); // replace 123 with your slideshow ID elseif ( $header_image ) :

    I replaced the line accordingly.

    The MetaSlide plugin says the following for the plugin use:

    To display your slideshow, add the following shortcode (in orange) to your page. If adding the slideshow to your theme files, additionally include the surrounding PHP code (in gray).?

    <?php echo do_shortcode(‘
    ??[metaslider id=”114″]
    ‘); ?>

    Where should I place this code exactly?

    I hid the picture in ‘Customize’,, so now I have different problems. Menu bar is above the slideshow. Getting a link and an extra space above the menu bar on home page. For certain menu items the slideshow just disappears.

    Hi,

    If the slideshow is displaying correctly in place, you don’t need to change anything with the shortcode number, or any php code you see there.

    For the positioning, you just need to move it around the code until you find the correct place you want it to be.

    Where should I place this code exactly?

    Can you share the part of the code where you have it now? (keep the code short, or use Gist to paste and share)

    Thread Starter yxda

    (@yxda)

    Thanks. I deleted the lines as I could not find their place. Now, they are not included.

    Hi,

    Just to clarify, does that mean the issue is resolved? Let me know how I can help.

    Thread Starter yxda

    (@yxda)

    Thanks. I couldn’t find a way to make it work, but I tried another plugin that seems to do the job.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘MetaSlider with Twentyeleven theme’ is closed to new replies.