Can't Remove Genesis Footer Link in Prose Theme

Community Forums Forums General Discussion Can't Remove Genesis Footer Link in Prose Theme

This topic is: not resolved

Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by  David Chu 1 year, 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #61063

    sk24iam
    Participant
    Post count: 2

    I would like to remove the Genesis Footer link from the Prose theme. From what I understand, the Prose theme is structured differently than most of the other themes so simply unhooking genesis_do_footer in the Simple Hooks plugin does not work.

    I have found these instructions… http://www.studiopress.com/forums/topic/copyright-problem-using-prose-theme-and-simple-hooks/

    Is there any other way to remove the copyright without altering the theme’s code? If I edit the init.php file will it revert back every time there is an update?

    #61086

    David Chu
    Participant
    Post count: 1428

    Hi,
    Interesting question. Prose is coded very differently from others. As always, I’d like to know who coded it, but that’s generally on the down-low.

    Editing init.php is somewhat risky, I’d bet. Instead, I’d suggest looking in Theme Functions, aka functions.php.

    Do a find on “footer”, and you’ll get down to the stuff eventually. I commented out some lines as per below, and that took out the usual stuff.

    [php]
    /******
    add_action(‘genesis_after’, ‘genesis_footer_markup_open’, 5);
    add_action(‘genesis_after’, ‘genesis_do_footer’);
    add_action(‘genesis_after’, ‘genesis_footer_markup_close’, 15);
    *******/
    [/php]

    Recap: this theme pulls out the footer, and then repositions it. By commenting the reposition part as per above, we just leave out the reposition, and it stays gone. :-) This is less invasive than messing with init.php, and reasonably easy to remember if it gets overwritten accidentally by an update.

    Dave


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

    #61087

    sk24iam
    Participant
    Post count: 2

    Thanks for your response David. I will look into this as a temporary solution until I can figure out a way to do it without having to worry about updates. I am also considering on simply changing the font color to match the background. The link will still be there but at least it won’t be visible.

    #61118

    David Chu
    Participant
    Post count: 1428

    You’re welcome.
    And as I thought about it, another method, somewhat less blunt, is filtering. Check out these, and I just used something like the very bottom one on a site. In your case, you could simply return nothing, or to be more specific, an empty string. :-)

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

    You’re still using a function, which you have to put somewhere. When I do mods of stock Genesis themes, I break my functions out into a separate functions file, and then pull that in with a one-liner in normal functions.php. Then even if you have loads of custom code, as I often do, the only change you’re making to the stock code is a 1-liner, which is easy to manage, or fix if you forget while updating.

    Dave


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

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

You must be logged in to reply to this topic.