Skip to content

Instantly share code, notes, and snippets.

@Jonnyauk
Last active December 20, 2015 07:09
Show Gist options
  • Save Jonnyauk/6090829 to your computer and use it in GitHub Desktop.
Save Jonnyauk/6090829 to your computer and use it in GitHub Desktop.
Wonderflux has lots of filters for you to manipulate the output. Here's how to change the footer and comment credit - NOTE: You are free to do this, there is no requirement to give Wonderflux credit (although it would be appreciated - at-least tell your WordPress buddies!)
<?php
// Just a simple text string that appears near the footer as a HTML comment (view source)
function my_wfx_filter_code_credit() {
return 'Designed and coded by Wonderflux. Powered by WordPress and the Wonderflux theme framework.';
}
add_filter( 'wflux_comment_code_credit', 'my_wfx_filter_code_credit' );
// Replace the footer credit with your own text
function my_wfx_filter_footer_credit() {
return '<p class="meta">All content &copy;' . date('Y') . ' My Company | Website design &amp; coding by <a href="http://www.wondeflux.com" class="footer-credit-logo" title="Website design and coding by Wonderflux">Wonderflux</a></p>';
}
add_filter( 'wflux_footer_credit', 'my_wfx_filter_footer_credit' );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment