• Resolved marjolek

    (@marjolek)


    Is it possible to place an slider (plugin) rather than the image in the header??

Viewing 12 replies - 1 through 12 (of 12 total)
  • cmd.cmd0

    (@cmdcmd0)

    How can I place slider on my sites home page. I am using Expound theme and my site is https://www.lyricsbell.com/

    Roch

    (@rochesterj)

    Hi guys!

    For that a plugin is required. Any slider plugin should work

    Kind Regards,
    -Roch

    Thread Starter marjolek

    (@marjolek)

    Thx Roch, but where to put shortcode or php plugin code (e.g. HugeITSlider php: <?php echo do_shortcode(“[huge_it_slider id=’1′]”); ?> )

    Roch

    (@rochesterj)

    Hi!

    That depends on where you want your slider. For example you could add it in your header.php file

    Kind Regards,
    -Roch

    Thread Starter marjolek

    (@marjolek)

    Thanx, it’s work well,
    i used “meta slider” plugin and replaced code in header.php:

    from:

    <header id="masthead" class="site-header" role="banner">
         <?php rookie_header_area(); ?>
    </header><!-- #masthead -->

    to:

    <header id="masthead" class="site-header" role="banner">
         <?php echo do_shortcode("[metaslider id=1094]"); ?>
    </header><!-- #masthead -->

    works fine, but now i have padding line (transparent bar 10px) between menu block and content block – how to get rid of it??

    Roch

    (@rochesterj)

    Hi!

    Would you mind pasting the link to your website here, so we can check it out?

    Kind Regards,
    -Roch

    Thread Starter marjolek

    (@marjolek)

    Thread Starter marjolek

    (@marjolek)

    I solved this by adding css (margin-top:54px) in header.php,

    <header id="masthead" class="site-header" role="banner" <strong>style="margin-top:54px"</strong>>
    	<?php echo do_shortcode("[metaslider id=1094]"); ?>
    	<!--<?php rookie_header_area(); ?>-->
    </header><!-- #masthead -->

    and adding css in style.css:

    .site-content {
    	margin-top: -24px;
    }

    It works but I don’t know it is correct

    Roch

    (@rochesterj)

    Hi!

    That seems good for me! Thanks for sharing!

    Kind Regards,
    -Roch

    Thread Starter marjolek

    (@marjolek)

    Thanks Roch,

    Kind Regards,
    -marjolek

    i use html in my https://www.filmystuff.com but it wont work

    Sadia Afrin

    (@songspknet)

    How can I optimize slider on my website home page my site is https://songspknet.com/

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘slider in the header’ is closed to new replies.