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:
http://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: support@nextendweb.com
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: http://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.
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.