Changing Wonderflux footer and code comment credits

Wonderflux is made to be the most flexible WordPress theme framework available. To achieve this it needs to be:

  1. Easily modified
  2. Able to accommodate any creative design
  3. Not ram branding down your throat that’s impossible to remove

Well, 1 and 2 we have covered, but you may have noticed that by default, there is a small bit of text inserted into the footer, and a small text comment too in the code that is generated. These are inserted with functions, so it may look like Wonderflux is being really mean and forcing you to display these… not so! Just to be clear you don’t have to show these – we would really like to think that you would like to share with the world that you are using Wonderflux and as a little thank-you for all the hard work that has been put into the framework you might like to help us make more people aware of it (good karma!) – but if you want to change them, read on!

For those of you that don’t believe in karma, or simply want to hide away the fact that Wonderflux is making you look like a WordPress theme design rockstar/ninja/guru/expert (delete most offensive as applicable!) it’s actually very easy to manipulate this information.

Unlike a-lot of other WordPress theme frameworks, from very early versions of Wonderflux you have been able to remove/filter both the footer link and code comment – in-fact it was some of the first code that got completed! There will be full documentation on these filters in the future, but in the meantime you will want to try out the following in your theme functions.php file:

To change the footer link

function my_wfx_filter_footer_credit() {
  return '<p>Created by <a href="" title="My site">Me</a></p>';
add_filter( 'wflux_footer_credit', 'my_wfx_filter_footer_credit' );

To change the code comment

function my_wfx_filter_code_credit() { 
  return 'Website crafted and coded by me - cool!'; 
add_filter( 'wflux_comment_code_credit', 'my_wfx_filter_code_credit' );

Finally, just to make the point again if you missed it – you don’t have to keep any sort of footer links intact or credits in-place – what sort of a theme framework would make you do that and spoil your nice design? It’s just nice if you let people know that you used Wonderflux so they can use it too!

This Wonderflux guide document was last modified on: July 5, 2012 by Jonny