• Resolved dsides

    (@dsides)


    Can this slider plug in be used to replace a theme banner? If so, how?

    Directions are speaking about putting it on pages/posts. But I would like the slider put on our home page in place of the banner.

    The plug in looks sharp and exactly what I would like to use.
    Thanks for any responses.

    Our website is : sleepstudymo.com
    I’m wanting to replace the image behind where our logo is with the slider.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Gabor

    (@nextendweb_gabor)

    Hi @dsides!

    To replace your banner, you need to modify your theme. You should find these starting and ending codes:

    <header>
    ...
    </header>

    Probably they will be in the header.php file of your theme. Then remove everything from inside them, because that is your current banner, and put our slider there with the php code publishing:
    https://doc.smartslider3.com/article/150-publish-on-wordpress#php

    I would suggest making a backup of your file first, because a php error can cause a blank page on your frontend. If you would need more help with it, please contact us at: [email protected]

    Thread Starter dsides

    (@dsides)

    Uggg….unfortunately I don’t have <header> in my php header file. I even search for that in the full editor. (I have a </head>)

    I used the inspect element and found <div class=”sleep-shapes”> line contains the header image.
    But again, I can’t find that in the header php file? It’s in the style sheet.

    I just want to make sure I remove the right code and insert in the correct line. I truly only want the slider on the home page..that’s it. The currect image can be used on the other pages when it calls for a header. Make sense?

    Thread Starter dsides

    (@dsides)

    based on the directions from here: https://doc.smartslider3.com/article/318-chrome

    I’m thinking I should place the code for home page only right after this:

    <header class=”sleep-header<?php echo (theme_get_option(‘theme_header_clickable’) ? ‘ clickable’ : ”); ?>”><?php get_sidebar(‘header’); ?></header>
    <?php endif; ?>

    Am I correct?

    Thanks again for the help….super appreciate it.

    Ramona

    (@nextend_ramona)

    Hi @dsides

    Yes, that seems to be the correct code, however, if you don’t need the current header, I would suggest commenting that piece of PHP code inside the <header></header> tags.

    So it should look like this:

    <header class="sleep-header<?php echo (theme_get_option('theme_header_clickable') ? ' clickable' : ''); ?>">
    <?php /* get_sidebar('header'); */ ?>
    <?php echo do_shortcode('[smartslider3 slider=19]'); ?>
    </header>
    <?php endif; ?>

    just don’t forget to use the PHP code of your own slider there.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Theme banner replacement’ is closed to new replies.