By using the twenty sixteen theme, I placed a "slider" short-code in the header.php section. The result, the slider position is where i want it, but it's showing on all pages.

How do i achieve this by making the slider show on the homepage ONLY?

The website is : http://www.pulaakufm.com/

Thank you.

1 Answer 1


inside of the header.php file use is_home() to check if it's the home page

if ( is_home() ) {
    // Include slider here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.