Removing Footer .. must be simple!

Community Forums Forums Design Tips and Tricks Removing Footer .. must be simple!

This topic is: not resolved

Tagged: 

This topic contains 7 replies, has 5 voices, and was last updated by  robgolbeck 1 year, 9 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #3518

    Mazen Zogbi
    Participant

    Hello, I’m trying to remove the default footer and adding a custom one. Following is the code I’m using in functions.php:

    /* Customize the entire footer */
    remove_action(‘genesis_footer’, ‘genesis_do_footer’);

    function custom_footer() {
    ?>
    <p>&copy; Copyright 2011-2012 Salesiology is a Trademark of KnowTis Consulting Inc.</p>
    <?php
    }
    add_action( ‘genesis_footer’, ‘custom_footer’ );

    However, the site is still showing two footers! http://salesiology.com

    Thanks for your help

    Maz

     

    #4171

    Susan
    Moderator
    Post count: 9583

    Try removing this part of your code:

    add_action( ‘genesis_footer’, ‘custom_footer’ );

    http://my.studiopress.com/snippets/footer/


    Susan @ Graphically Designing I offer theme customizations I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

    #4587

    Mazen Zogbi
    Participant

    Thanks Susan.

    I want to keep the custom footer though. What I want to remove is the default one.

    Any pointers?

    Thank you!

    #4670

    Davinder Singh Kainth
    Participant
    Post count: 1453

    You can customize entire footer using last code on this http://my.studiopress.com/snippets/footer/ page.

    If you do not want to play around with manual code, then you can make changes in footer using this plugin: http://www.studiopress.com/plugins/simple-edits


    Need website customization services or other Genesis / WordPress help ?
    Davinder @ Design Studio iGuiding Media | My Blog | Fresh Genesis Themes Collection

    #24654

    robgolbeck
    Participant
    Post count: 10

    I’m having the same problem. I’ve pasted the snippet into functions.php for customizing the entire footer from here http://my.studiopress.com/snippets/footer/ but it’s still showing the default footer. Also tried Susan’s suggestion to remove add_action( ‘genesis_footer’, ‘custom_footer’ ); but that didn’t work either.

    All I want to do is remove the “return to top” link and have a simple copyright statement centered at the bottom of the page… I’ll try the Simple Edits plugin if necessary, but that seems like overkill for a relatively small change. I’d rather just use functions.php.

    Thanks!


    #24659

    Charlie
    Participant
    Post count: 112

    You can remove the default footer with this code:

    [php]remove_action( ‘genesis_footer’, ‘genesis_do_footer’ );
    [/php]

    #24713

    robgolbeck
    Participant
    Post count: 10

    That doesn’t work….


    #29092

    robgolbeck
    Participant
    Post count: 10

    I found a solution in this tutorial by Bill Erickson:

    Add this to the top of your child theme’s functions.php file:

    add_action('genesis_setup','child_theme_setup', 15);
    function child_theme_setup() {

    }

    (As explained in the tutorial: “This setup function attaches all of the site-wide functions to the correct actions and filters. All the functions themselves are defined below this setup function.”)

    Then within the setup function, add this to remove the default footer:

    remove_action( 'genesis_footer', 'genesis_do_footer' );

    and this to add your custom footer:

    add_action( 'genesis_footer', 'hc_footer' );

    (Note, I’ve prefixed my footer function with “hc_”, but you’ll want to use whatever makes sense for your own custom footer).

    Next, add your custom footer function below the setup function, like this:

    function hc_footer() {
    // your custom footer stuff
    }

    So your functions.php file would now look something like this:


    // Child Theme Setup
    add_action('genesis_setup','child_theme_setup', 15);
    function child_theme_setup() {
    remove_action( 'genesis_footer', 'genesis_do_footer' );
    add_action( 'genesis_footer', 'hc_footer' );
    }

    // Custom Footer
    function hc_footer() {
    // Footer stuff goes here
    }

    The tutorial is worth checking out for a more detailed explanation on this solution (and other ways create customize Genesis) – artofblog.com/building-a-genesis-child-theme/. It really helped me wrap my head around Genesis a little better. :)


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

You must be logged in to reply to this topic.