Footer Credits Issue with Legacy Theme

Community Forums Forums Design Tips and Tricks Footer Credits Issue with Legacy Theme

This topic is: not resolved

This topic contains 5 replies, has 5 voices, and was last updated by  braddalton 10 months, 2 weeks ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #34361

    wp guy
    Participant
    Post count: 220

    I inherited a project and they want the footer credits modified. They want something added to it. Since the credits were already customized I figured I’d just modify it in the functions.php or maybe by clicking the “Genesis” tab. However, I could not find anything regarding how they modified the credits – nothing in the home.php, nothing in the Genesis tab, no plugins, etc…

    So I put the code below into the functions.php. Nothing. Didn’t change it. I put the code into my test site and it worked just fine. Any help appreciated.

    This is the site: http://www.gelsnutrition.com/

    And this is the code I put in the functions.php that didn’t change anything:

    /** Customize the entire footer */
    remove_action( ‘genesis_footer’, ‘genesis_do_footer’ );
    add_action( ‘genesis_footer’, ‘custom_footer’ );
    function custom_footer() {
    ?>
    <p>&copy; <p style=”text-align: center;”>© 2011  <a href=”http://www.gelsnutrition.com/”>Gels Nutrition</a> &middot; All Rights Reserved &middot; Designed by <a href=”http://www.wordpressredesigned.com”>Wordpress ReDesigned</a> &middot; <a href=”http://mydomain.com/wp-admin”>Admin</a>Search Engine Optimization SEO by <a href=”http://www.seoexcell.com”>Seo Excell</a></p>
    <?php

    #34376

    Ozzy
    Participant
    Post count: 211

    i’d need FTP access to be of any help… maybe someone can chime in that’s experienced something like this before.


    #36888

    SusanT
    Participant
    Post count: 10

    I’m not sure if this will apply to you, but I just customized the footer credits on a site, and here’s the code I that worked for me. I added this to the functions.php file.

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

    {   echo ‘<div class=”creds”><p>’;
    echo ‘Copyright &copy; ‘;
    echo date(‘Y’);
    echo ‘ &middot; <a href=”http://www.glennmeadowbb.com”/>Tracey Davis</a>  | Website design by <a href=”http://www.susantrabucchi.com/”>Susan Trabucchi</a> Powered by the <a href=”http://www.studiopress.com/themes/genesis/”>Genesis Framework</a>’;
    echo ‘</p></div>’;
    }

    The site is http://www.glennmeadowbb.com

    #36890

    braddalton
    Participant
    Post count: 8873

    wp guy: Your code has opening and closing PHP tags which will cause a problem plus your HTML isn’t eco’d.

    Modify Susan’s with your own HTML and it should work.

    Here’s an excellent beginners guide to PHP http://devzone.zend.com/4/php-101-part-1-down-the-rabbit-hole/

    You only use the PHP tags when adding PHP to template files. Not when adding custom functions to your child themes functions.php


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #62152

    Harley130
    Participant
    Post count: 21

    I tried to use the code snippet from SusanT’s post above but I get the following error message: Parse error: syntax error, unexpected T_CLASS, expecting ‘,’ or ‘;’ in /home/content/L/i/t/LittleredV/html/dhrphoto/wp-content/themes/landscape/functions.php on line 58
    Line 58 is: { echo ‘<div class=”creds”><p>’;

    Using with the Landscape theme

    Am I missing something?

    #62210

    braddalton
    Participant
    Post count: 8873

    The problem with copying code from a web page is the Apostrophes turn around causing errors.

    Please see point 6 http://wpsites.net/wordpress-tips/reasons-code-doesnt-work-how-to-fix-it/

    I suggest you install the Genesis Simple Edits plugin and customize the entire footer credits that way.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

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

You must be logged in to reply to this topic.