Skip to content

Instantly share code, notes, and snippets.

@2shrestha22

2shrestha22/foodhunt.txt

Last active Jul 18, 2018
Embed
What would you like to do?
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
You can’t perform that action at this time.