Customize the Footer Text

Community Forums Forums Design Tips and Tricks Customize the Footer Text

This topic is: not resolved

This topic contains 7 replies, has 5 voices, and was last updated by  Sridhar Katakam 8 months, 4 weeks ago.

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

    kennypress
    Member
    Post count: 6

    Hi,
    Trying to learn Genesis and building a stripped-down child theme to server as a ‘starter template’ for future sites. Using the latest 2.0.1 framework.

    Just trying to simply change the default footer text, but not having a lot of success. I added the code per the snippet found at MyStudioPress:

    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
    }

    While it does add the new line, it does NOT remove the default. So there are two copyright lines now.

    - Did I miss something obvious? I copied & pasted from the code snippet.
    - I also tried to use the shortcode [footer_copyright] instead of the year, but it just outputs the shortcode as-is. ?!?

    Thanks! Hoping things will get easier as I get more familiar…

    #68574

    Sridhar Katakam
    Participant
    Post count: 923

    I tested that code snippet in Genesis Sample child theme v2.0.1 with Genesis parent theme v2.0.1 and it works fine.

    screenshot


    #68579

    jhguynn
    Participant
    Post count: 216

    Looks like you’re going about this in the most pure way (manually coding what will become a starting template for future sites). But I just want to make sure you’re aware of the Genesis Simple Edits plugin. Makes this easy as pie.

    #69355

    emmajemm
    Member
    Post count: 3

    Where does the code snippet above need to be placed? I’m aiming for the same thing…

    • This reply was modified 9 months ago by  emmajemm. Reason: EDIT: never mind I figured it out!
    • This reply was modified 9 months ago by  emmajemm. Reason: EDIT: never mind I figured it out!
    #69370

    Sridhar Katakam
    Participant
    Post count: 923

    At the end of child theme’s functions.php.


    #69409

    Mealtog
    Participant
    Post count: 360
    #69545

    kennypress
    Member
    Post count: 6

    Thanks for the help. Looks like the developer who helped first create this base child theme didn’t add the line:
    include_once( get_template_directory() . '/lib/init.php' );

    Once I added that, things started working a bit better. Is that absolutely required and the ‘best/most efficient’ way to go about it??

    And the reason I was doing it manually vs. using the plugin right now are:
    A) thought it would be good to start learning the ‘proper’ way to do things so I know the syntax a bit;
    B) worried about the plugin becoming outdated/incompatible on an update;
    C) wasn’t certain the plugin could do everything that may be needed for changing/overriding, which may result in some changes being in plugin and some in functions.php, which just may get confusing to see what’s really going on.

    Let me know if any of my concerns about the plugin are unwarranted.

    Thanks!

    #69571

    Sridhar Katakam
    Participant
    Post count: 923

    If you are comfortable adding and editing functions.php that is the way to go. You will feel like you are in control.


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

You must be logged in to reply to this topic.