I would like to display the footer widgets only on the front page of a website, hiding it on the inner pages of the education theme.
The url for the site is: http://ltciorg.dreamhosters.org.
I know there are certain plugins that do this, but I’ve tried “widget context” and an empty footer widget area still shows up on the inner pages of the website.
Does anyone know of a code snippet/hook or any other way that is available to hide the footer widgets div on all pages except the front page?
There’s several ways you can do this, the Widget Logic plugin being the easiest by adding
is_front_page() or is_home()
to the footer widgets.
You can then use CSS to hide anything left over.
You can also use PHP in your child themes functions.php file:
For front page if using a page other than the default.
Thanks everyone! This has helped. One other related question. If you look at the site now,
http://www.ltciorg.dreamhosters.com, you’ll see as you scroll down the page that below the “Featured” widget area with the “Read More” buttons, there is an open space. But I can’t seem to figure out how to remove that area or even what code is generating it.
You must be logged in to reply to this topic.
Are you a blogger, web designer, developer, or website owner looking to generate more income?
Promote products for the largest and fastest growing online website platform as part of our affiliate program.