First check if your theme supports full width blocks, then you can put the slider’s short-code there. Yoo Slider does not force and stretch the parent container, it could cause troubles and unexpected behavior! Instead you should use the full width block provided by your theme or builder, wherever you want to put the full width slider’s short code.
There’re other options if the theme or builder does not support such functionality.
If you want to have the slider right under the </header> code. That is usually in the header.php file, but it could be in other files too. We’d recommend to modify the child theme, so you’ll not lose your changes if you update the theme in the future.
The php code you’ll need to show the slider only on the homepage is bellow:
<?php
if(is_home() || is_front_page()){
echo do_shortcode('[yooslider id=123]');
}
?>
or if you want to show on another page you can use this sample
<?php
if(get_the_ID()==2) {
echo do_shortcode('[yooslider id=1]');
}
?>