- This topic has 6 replies, 2 voices, and was last updated 8 years, 2 months ago by Mahesh.
-
AuthorPosts
-
August 8, 2016 at 4:39 am #96757mayapourParticipant
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 ?
August 8, 2016 at 12:01 pm #96777MaheshParticipant@mayapour: Please refer to this thread
https://catchthemes.com/support-forum/topic/adding-a-link-to-the-footer/#post-83784Regards,
MaheshAugust 8, 2016 at 2:36 pm #96780mayapourParticipantHello and Thank you for your help.
Before I contact you I’ve followed every step of this link.
Maybe I’ve missed something ?Sorry but I’m a binginner.
Should I replace my functions.php code by your exemple and only that ?
When I try, it makes no difference …Thank you for your patience.
August 8, 2016 at 5:00 pm #96795MaheshParticipant@mayapour: The code is working fine. May be cache/transient problem. Please uncomment
//catchresponsive_flush_transients();
line in the above code and check again. Please comment the line again.Regards,
MaheshAugust 9, 2016 at 5:31 pm #96887mayapourParticipantHello Mahesh,
Thank you for your help. I dit it : uncomment / empty cache/ check / comment / empty cache/ check …
But it didn’t change anything 🙁Regards,
Mc
August 9, 2016 at 11:48 pm #96911mayapourParticipantThank you, I start it again : problem solved 🙂
August 10, 2016 at 9:55 am #96968MaheshParticipant@mayapour: Glad to know your problem is resolved. Thank you for your appreciation. If you like my support and Catch Responsive theme then please support by providing your valuable review and rating at https://wordpress.org/support/view/theme-reviews/catch-responsive?rate=5#postform
Regards,
Mahesh -
AuthorPosts
- The topic ‘Link in the footer’ is closed to new replies.