Link in the footer
Hello,
After activate un child theme of Catch Responsive (free version), I need ti add a link and a name in the footer of this child theme.
I add this code in the functions.php but it doesn't work :
<?php
/**
* Child Theme functions and definitions
*
*/
/**
* Loading Parent theme stylesheet
*
*/
add_action( 'wp_enqueue_scripts', 'catchbox_child_enqueue_styles' );
function catchbox_child_enqueue_styles() {
wp_enqueue_style( 'catchbox-parent-style', get_template_directory_uri() . '/style.css' );
}
function catchflames_child_footer_content() {
//catchflames_flush_transients();
if ( ( !$catchflames_footer_content = get_transient( 'catchflames_footer_content' ) ) ) {
echo '<!-- refreshing cache -->';
$catchflames_content = catchflames_();
$catchflames_footer_content = '
<div id="site-generator">
<div class="wrapper">
<div id="custom-links">
Data Link |
Cookie Link
</div>
<div id="footer-content" class="copyright">'
. $catchflames_content['left']
. ' | '
. $catchflames_content['right'] .
'</div>
</div><!-- .wrapper -->
</div><!-- #site-generator -->';
set_transient( 'catchflames_footer_content', $catchflames_footer_content, 86940 );
}
echo $catchflames_footer_content;
}
add_action( 'init', 'catchflames_child_add_links_in_footer' );
function catchflames_child_add_links_in_footer() {
remove_action( 'catchflames_footer', 'catchflames_footer_content', 100 );
add_action( 'catchflames_footer', 'catchflames_child_footer_content', 100 );
}
Can you help me ?