Customize the Footer Text in Metro Pro Theme

Community Forums Forums Design Tips and Tricks Customize the Footer Text in Metro Pro Theme

This topic is: not resolved

Tagged: 

This topic contains 9 replies, has 4 voices, and was last updated by  DenverEric 7 months, 1 week ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #82722

    Zach Russell
    Participant
    Post count: 42

    I am trying to customize the footer text of the Metro Pro theme on my site WP Temple, and I cannot figure out how to do it. I tried the tutorial in the Genesis Docs to customize the footer:

    remove_action( 'genesis_footer', 'genesis_do_footer' );
    add_action( 'genesis_footer', 'sp_custom_footer' );
    function sp_custom_footer() {
    	?>
    	<p>&copy; Copyright 2012 <a href="http://mydomain.com/">My Domain</a> &middot; All Rights Reserved &middot; Powered by <a href="http://wordpress.org/">WordPress</a> &middot; <a href="http://mydomain.com/wp-admin">Admin</a></p>
    	<?php
    }

    And it just adds the text to the wrong place. I then realized that this footer was added in the genesis_after hook, but when I do that, it just adds the code along with the footer code (I left it this way for reference).

    I would appreciate any help you can offer!


    ———-
    Zach Russell
    President, ProTech Internet Group

    http://wptemple.com
    #82725

    workky
    Participant
    Post count: 76

    I use Genesis Simple Edits to Edit the footer text and credits, etc.
    http://accidentdoctor.org


    life’s tough, its a lot tougher if your stupid

    #82726

    David Chu
    Participant
    Post count: 1371

    Hi!
    That is a brain-teaser – Metro is a little strange. I got it to work by threading your command into functions.php as follows. You have to get it in the exact right sequence, or else you don’t get the cute container, and you keep the old stuff. Note the commented line, and the one below. And yes, you’ll want your custom function somewhere in the file – that’s less critical.

    [php]
    //* Reposition the footer

    remove_action( ‘genesis_footer’, ‘genesis_footer_markup_open’, 5 );

    remove_action( ‘genesis_footer’, ‘genesis_do_footer’ );

    remove_action( ‘genesis_footer’, ‘genesis_footer_markup_close’, 15 );

    add_action( ‘genesis_after’, ‘genesis_footer_markup_open’, 11 );

    //add_action( ‘genesis_after’, ‘genesis_do_footer’, 12 );
    add_action( ‘genesis_after’, ‘sp_custom_footer’, 12 );

    add_action( ‘genesis_after’, ‘genesis_footer_markup_close’, 13 );
    [/php]

    Cheers, Dave


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

    #82727

    Zach Russell
    Participant
    Post count: 42

    Genius!

    I was a little confused adding priorities (thats what the numbers are right?) to the hooks.

    I’ll let you know how it works!

    Thank you


    ———-
    Zach Russell
    President, ProTech Internet Group

    #82746

    David Chu
    Participant
    Post count: 1371

    Yes!
    As soon as you move to Genesis 2, those priorities become very important, mostly due to needing to support the complexities of HTML5. I’ve published some of my experimentation and troubleshooting of those HTML5 hooks and priorities.

    Dave


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

    #82755

    Zach Russell
    Participant
    Post count: 42

    Haha well now I know. As I get into more complex genesis development projects I know this will help! Thanks man.


    ———-
    Zach Russell
    President, ProTech Internet Group

    #82759

    David Chu
    Participant
    Post count: 1371

    My pleasure, good to meet you!
    Dave


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

    #82760

    Zach Russell
    Participant
    Post count: 42

    Works like a charm! Only problem was I tried to concatenate strings using Python syntax :/ Thanks for your help!


    ———-
    Zach Russell
    President, ProTech Internet Group

    #82761

    David Chu
    Participant
    Post count: 1371

    Python! Oooh, that’s wild!
    I use Monty Python syntax, though. :-)


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

    #95330

    DenverEric
    Participant
    Post count: 12

    Hi Fellas, I used the code you offered here on my site and was left with two footer lines. How do I drop the default footer text in this theme?

    Site: http://wikibias.com/


    • This reply was modified 7 months, 1 week ago by  DenverEric.
    • This reply was modified 7 months, 1 week ago by  DenverEric.
Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.