Last active
July 18, 2018 08:58
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 © ' . 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