Plugin Support
Gabor
(@nextendweb_gabor)
Hi @pavanbhat!
To have this, you will have to modify the code of your theme. You should use the PHP publishing to have our slider in the same placement you have it currently:
https://smartslider3.helpscoutdocs.com/article/150-publish-on-wordpress#php
As you see here from step 5.:
https://smartslider3.helpscoutdocs.com/article/318-chrome#code
you should search for the </header> codepart in your theme. But probably it will be in the header.php file, so you could open that up first to take a look there. If you found it, you could insert our slider right under it, and that would put it under your menu. This way your website’s content part, where the widgets are, will come after the slider and you could have sidebar widgets.
Hi there,
I have the same issue, i want to have smart slider on my homepage followed by the sidebar. but only on my homepage as this slider is not needed on other pages.
I beleive changing header.php will edit all my website pages but i just want it to be effective on my home page.
Would you please help on this ?
Thank you in advance.
Best Regards
-
This reply was modified 5 years, 11 months ago by
selmas.
Plugin Support
Gabor
(@nextendweb_gabor)
Hi @selmas!
WordPress offers functions, which would allow you to run PHP codes only on the homepage:
https://smartslider3.helpscoutdocs.com/article/150-publish-on-wordpress#useful-php-functions
<?php
if(is_home() || is_front_page()){
echo do_shortcode('[smartslider3 slider=1]');
}
?>
And we also have advanced shortcodes:
https://smartslider3.helpscoutdocs.com/article/150-publish-on-wordpress#home_page
[smartslider3 slider=71 page=home]
which are using these functions, so they would do exactly the same.