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:
- You can move the code from your functions.php file into your front-page.php file
- 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.
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
All this can be done with custom code.
There you go Brad… a feature box for your Outreach Pro tutorials.
http://genesisthemes.co.uk/outreach-pro-genesis-child-theme/
Good stuff Keith.
Theme looks great in orange.
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.