Hi there … I installed the plugin. But how do I place it in the home page below the header. So the sequence is like Header, Meta Slider & then Post Lists.
The plugin provides a code to place in the theme template. It says
Copy & paste this code into a template file to include the slideshow within your theme
<?php
echo do_shortcode("[metaslider id=1257]");
?>
But where to place the code exactly so that it appears exactly below header and before post list starts.
I tried but not getting the idea and wrong placement could change the hueman theme and my site.
*************************************
I also used another slider plugin – Smart Slider and there also I get the codes to place in my theme template.
PHP code
For this one you will need php and html knowledge.
If you are not sure about yourself, always have a backup, and edit from your FTP, not from the Appearance → Edit, because you can make php errors there, big enough to make your whole website blank including your back-end.
WordPress offers a do_shortcode function, what you can use to put shortcodes into your theme’s php files.
You will need to find the codepart, where you want to have your slider.
After you have got the code, use the do_shortcode function to put your slider there. You can also use some other WordPress functions to make your slider only show up on certain pages.
Show up everywhere:
<?php echo do_shortcode('[smartslider3 slider="1"]'); ?>
Only on the homepage:
<?php
if(is_home() || is_front_page()){
echo do_shortcode('[smartslider3 slider="1"]');
}
?>
I am not getting idea where to place the codes & also how to use do_shortcode
I am liking Smart Slider more than Meta Slider. I guess I need to place the codes for the slider at the same place for hueman theme.
Is it possible to use a child theme for this purpose, so that I don’t distort the design of my site
Hoping for a quick solution.