• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2784

Original Genesis Tutorials & 6000+ Guaranteed Code

Snippets

  • Consultation
  • Full Access
  • Log in

Display Outreach Pro Sub Footer Widgets On Front or Home Page Only

The Outreach Pro child theme from StudioPress includes 2 sub footer widgets of different widths which display on all pages of your site.

Robert asked me this question in the comments on this post about removing footer widgets on specific pages:

Is this also possible with sub footers? I would like to display the sub footers (Outreach Pro theme) only on the homepage. I’ve been trying this with code snippets but I can’t figure it out.

There’s 2 ways you can control which pages these widgets display on:

  1. You can move the code from your functions.php file into your front-page.php file
  2. Or you can add a conditional tag after the function in your functions.php file.

Move Code To front-page.php

The 1st solution limits the display of your sub footer widgets to the front page of your site only.

Simply copy this code from your functions.php file and paste it at the end of the front-page.php file before the closing genesis(); tag.

You will need to remove the code from your functions file after copying the code.

Add Conditional Tag to functions.php code

The 2nd option which is far more flexible requires the addition of a conditional tag after the function.

Here’s how the code can look after adding the conditional tag.

In the above example, i have added the is_front_page() conditional tag so the widgets only display on the front page of your site. You can change this tag to any other conditional tag.

Footer Widgets Outreach Pro Theme

Reader Interactions

Comments

  1. Suwanna Hardwick says

    May 1, 2014 at 2:32 am

    Hi Brad,

    Can I ask a different question but in relation to the sub-footer-left and -right widgets in Outreach Pro theme?

    1.) How can I extend the sub-footer-left to the full width which means that can we also eliminate sub-footer-right as well as at the moment we don’t need to have a sub-footer-right?
    2.) If we can extend the full-width of sub-footer-left, we have an introduction of the company inserted in the sub-footer-left area, how can I split the full text in the sub-footer-left into 2 or 3 columns to make it is more readable to the reader.

    Thank you very much. Regards

    Log in to Reply
    • Brad Dalton says

      May 1, 2014 at 2:37 am

      All this can be done with custom code.

      Log in to Reply
  2. Keith Davis says

    April 27, 2014 at 6:47 pm

    There you go Brad… a feature box for your Outreach Pro tutorials.
    http://genesisthemes.co.uk/outreach-pro-genesis-child-theme/

    Log in to Reply
    • Brad Dalton says

      April 27, 2014 at 7:02 pm

      Good stuff Keith.

      Theme looks great in orange.

      Log in to Reply
  3. Keith Davis says

    April 26, 2014 at 4:31 pm

    Hi Brad
    “I would like to display the sub footers (Outreach Pro theme) only on the homepage.”

    That is exactly what I wanted to do.

    Allows me to add SEO text on homepage only and not repeat on other pages.

    Thanks for a fabulous tutorial Brad.

    Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags