• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

display footer widgets only on front page

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › display footer widgets only on front page

This topic is: not resolved

Tagged: education child theme, footer, footer widgets

  • This topic has 4 replies, 2 voices, and was last updated 10 years, 5 months ago by Brad Dalton.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • April 3, 2013 at 12:18 pm #32876
    Acrabby
    Member

    Greetings,

    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?

    Thanks!

     

    April 3, 2013 at 3:01 pm #32917
    Brad Dalton
    Participant

    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.


    Tutorials for StudioPress Themes & WooCommerce.

    April 3, 2013 at 3:52 pm #32924
    Brad Dalton
    Participant

    You can also use PHP in your child themes functions.php file:

    For front page if using a page other than the default.


    Tutorials for StudioPress Themes & WooCommerce.

    April 17, 2013 at 11:07 am #35971
    Acrabby
    Member

    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.

    Any thoughts?

    April 17, 2013 at 3:52 pm #36013
    Brad Dalton
    Participant

    Try installing the Firebug addon for Firefox and inspect the element you want removed.

    You can then add {display: none;} to the class you want hidden in real time using your browser to test if it works.


    Tutorials for StudioPress Themes & WooCommerce.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble