How to add slider to home page in pinboard theme

Viewing 3 posts - 1 through 3 (of 3 total)
  • #16050
    kobruleht
    Participant

    Slider is created using Meta Slider Lite v2.2.1.

    Meta Slider shows it usage as

    ` Shortcode

    [metaslider id=449]

    Template Include

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

    Pinboard theme is used.
    Text module is added to its header element.
    Text element contains

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

    slider does not appear. View source shows that

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

    are rendered literally.

    How to show slider in header ?

    #16074
    freela
    Participant

    Hi kobruleht,

    Paste this code
    <? php echo do_shortcode (“[id = metaslider 449]”);?>
    in the index.php file of the template immediately after the code
    <? php get_header ();?>
    example:
    <? php get_header ();?>
    <? php echo do_shortcode (“[id = metaslider 449]”);?>
    <? php if (is_home () &&! ​​is_paged ()):?>
    <? php if (pinboard_get_option (‘slider’)):?>
    <? php get_template_part (‘slider’);?>
    <? php endif;?>

    #18041
    Geri
    Participant

    Hi!

    I found this description of you, because I wanted to implemet the slider on my site.

    Thank you very much!

    Greetings from Vienna!
    Geri

Viewing 3 posts - 1 through 3 (of 3 total)

Tagged: 

You must be logged in to reply to this topic.