Editing Genesis files (footer.php)

Community Forums Forums General Discussion Editing Genesis files (footer.php)

This topic is: not resolved

Tagged: , ,

This topic contains 7 replies, has 4 voices, and was last updated by  missybunnie 4 months ago.

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

    Mark Blair
    Participant
    Post count: 20

    I have run into this once or twice recently and now it involves something that I would like to add to my site and again it has come up. I want to add something that involves editing the footer.php file in my theme. Problem is, that file does not exist for the child theme (eleven40 Pro) and is only available in the Genesis templates. Viewing that file displays this nice warning:

     * WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances.
     * Please do all modifications in the form of a child theme.

    :) Not every add-on or improvement to a site can be done through plugins. Although it would be nice, this is not always an option. I am capable of working with HTML and I don’t mind trying a thing or two (backups are always made just in case) but this type of warning leads me to believe I am going to totally break my site beyond repair. Of course with a proper backup that isn’t likely and if a new version of Genesis Framework is released and my changes are gone, I can save a text file on my PC with those changes and just reapply them.

    Now to my question – or inquiry – what does everyone else do? Do you follow this warning and NEVER update files under the Genesis templates? Or do you make limited changes only when necessary and keep good backups? I am curious.

    Thanks!


    Mark
    [ Blog ] [ Facebook ] [ Google+ ] [ Twitter ]

    • This topic was modified 10 months, 2 weeks ago by  Mark Blair.
    • This topic was modified 10 months, 2 weeks ago by  Mark Blair.
    #60921

    anitac
    Participant
    Post count: 6991

    What theme are you using? Please provide a link to the website you are referring to.


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

    #60932

    Mark Blair
    Participant
    Post count: 20

    Both are in my post above.

    Theme: eleven40 Pro
    Site is in my signature: http://www.markblair.net/

    Either way this is something that everyone using Genesis will see as the only templates in the child theme are:

    functions.php
    home.php
    page_landing.php
    style.css

    You have to go to Genesis templates to see footer.php, header.php, page.php, etc.


    Mark
    [ Blog ] [ Facebook ] [ Google+ ] [ Twitter ]

    #60936

    anitac
    Participant
    Post count: 6991

    Ok, I misread the eleven40 and I didn’t want to assume that it was the link to your blog as you could be working on a client website or some other website. The general rule is not to edit the framework files. If you need to make adjustments to these, then you would add your code to the functions.php file with the appropriate hook.


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

    #60941

    Mark Blair
    Participant
    Post count: 20

    Alright, that makes sense. :) I can look into changing functions.php instead. Thanks for the info!


    Mark
    [ Blog ] [ Facebook ] [ Google+ ] [ Twitter ]

    #61085

    Mark Blair
    Participant
    Post count: 20

    anitac, do you know of any good resources that explain how to properly use hooks? I have never worked with these before and I just tried to follow the steps at this site without any success: http://wpcandy.com/teaches/how-to-use-wordpress-hooks/

    The code I am trying to add to my site is found at the following site. They require that the code is added to footer.php but as you had suggested I am trying to add that code to functions.php instead and then somehow use a hook to access footer.php.

    http://www.wpbeginner.com/wp-tutorials/how-to-create-a-sticky-floating-footer-bar-in-wordpress/

    Any suggestions are greatly appreciated.


    Mark
    [ Blog ] [ Facebook ] [ Google+ ] [ Twitter ]

    #95415

    joycegrace
    Participant
    Post count: 57

    If you added a footer.php to a child theme folder, would it hold up in Genesis, or would it confuse things? I need to do this to create a network wide footer on a multisite project and not sure if it can be done with the functions file (I’m in my preliminary research stages – any advice would help).


    Find me at Joyce Grace (http://www.joycegrace.ca) and Clicks Online Marketing (clicksonlinemarketing.com).

    #95543

    missybunnie
    Member
    Post count: 3

    You could possibly do this by adding a footer.php to your child theme. This would override the footer.php in genesis and let you make the changes. You’d just have to be careful about when you update your child theme to make sure the changes you make are still valid and that you have a copy for when the update erases it.

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

You must be logged in to reply to this topic.