Community Forums › Forums › Archived Forums › General Discussion › Can't Remove Genesis Footer Link in Prose Theme
Tagged: Prose
- This topic has 3 replies, 2 voices, and was last updated 10 years, 7 months ago by David Chu.
-
AuthorPosts
-
September 6, 2013 at 7:46 am #61063sk24iamMember
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.community/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?
September 6, 2013 at 9:43 am #61086David ChuParticipantHi,
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.
/****** 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); *******/
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
September 6, 2013 at 9:51 am #61087sk24iamMemberThanks 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.
September 6, 2013 at 12:08 pm #61118David ChuParticipantYou'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
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.