Display Different footer text on home page

Community Forums Forums Design Tips and Tricks Display Different footer text on home page

This topic is: not resolved

Tagged: ,

This topic contains 1 reply, has 2 voices, and was last updated by  AC 2 years, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #7338



    I’m working on a website for a friend, http://tlcseo.com, and he is allowing me to put a link to my site in the footer of his. The current code is as follows:

    remove_action( ‘genesis_footer’, ‘genesis_do_footer’ );
    add_action( ‘genesis_footer’, ‘custom_footer’ );
    function custom_footer() {
    <p>&copy; Copyright 2012 <a href=”http://tlcseo.com/”>TLCSEO</a> &middot; All Rights Reserved &middot; Maintained by <a href=”http://www.protechig.com/”>ProTech Internet Group</a>

    Now what I want to happen is for the link to “ProTech Internet Group” to only be a link on the home page, and no other. Is there any way to write a separate genesis_footer hook into this with an if is home regex? If so, what would the hook look like?




    Zach Russell
    President, ProTech Internet Group



    Add this under your function custom_footer line –

    if( is_home() ) {

    Here’s more on this – http://codex.wordpress.org/Function_Reference/is_home.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.