Site icon Catch Themes

Link in Footer

I am trying to add a link in the footer of Catch Flames. I created the child theme following your instruction in another thread and added some code to functions.php you provided based on similar requests for Catch Responsive and Catch Box. Sadly didn't work, but I'm definitely no programmer. I only need to add one link. Could you please help? Here is one of my attempts
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">
    			    <a title="Data Link" href="#" target="_self">Data Link</a> |
    			    <a title="Cookie Link" href="#" target="_self">Cookie Link</a> |
    			    <a title="Security Link" href="#" target="_self">Security Link</a>
    			</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 );
}
Exit mobile version