Skip to content

Instantly share code, notes, and snippets.

@2shrestha22
Last active July 18, 2018 08:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 2shrestha22/7dff41dba20efafd6260fd046599b8d9 to your computer and use it in GitHub Desktop.
Save 2shrestha22/7dff41dba20efafd6260fd046599b8d9 to your computer and use it in GitHub Desktop.
code snippet to remove footer credits in Foodhunt by ThemeGrill. Put this in function.php
dd_action('init','remove_default_foodhunt_credits');
function remove_default_foodhunt_credits(){
remove_action('foodhunt_footer_copyright','foodhunt_footer_copyright');
}
add_filter('foodhunt_footer_copyright', 'foodhunt_custom_credits');
function foodhunt_custom_credits(){
$foodhunt_custom_credits = ""; //add here any text you want to put in footer credits
$credit_value ='<div class="copyright"><span class="copyright-text">Copyright &copy; ' . date('Y') . ' <a href="' . esc_url( home_url( '/' ) ) . '" title="' . esc_attr( get_bloginfo( 'name', 'display' ) ) . '" ><span>' . get_bloginfo( 'name', 'display' ) . '.</span></a> ' .$foodhunt_custom_credits. '</span></div>';
echo $credit_value;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment