Hide WordPress SideBar on HomePage

if ( !is_front_page() ){

//your sidebar code

}

Explain:

is_front_page() is checking if the page is front page or not

 

Thans for reading

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *