- This topic has 7 replies, 2 voices, and was last updated 7 years, 8 months ago by Mahesh.
-
AuthorPosts
-
June 2, 2016 at 11:58 pm #92813monicavilasParticipant
Hi Sakin,
how are you?
I would like to add a link to my terms and conditions page on the footer of my page (www.dbgen.org).
I’ve tried it with widget but I would like the link to appear right next to “Copyright. All rights reserved” instead of above it.
I’ve seen the answers for Catch Responsive (the issue seemed similar to mine) but it doesn’t seem to work in my case.
Could you help me?Much appreciated,
Mònica
June 3, 2016 at 9:44 am #92829MaheshKeymaster@monicavilas: In Pro version, there is built-in option for editing footer content. I recommend you to Pro version. Or it seems you are already using a child theme, you can add the function to override the default footer content.
function catchbase_footer_content() { //catchbase_flush_transients(); if ( ( !$catchbase_footer_content = get_transient( 'catchbase_footer_content' ) ) ) { echo '<!-- refreshing cache -->'; $catchbase_content = catchbase_get_content(); $catchbase_footer_content = ' <div id="site-generator" class="two"> <div class="wrapper"> <div id="footer-left-content" class="copyright">' . $catchbase_content['left'] . '</div> <div id="footer-right-content" class="powered">' . $catchbase_content['right'] . '</div> </div><!-- .wrapper --> </div><!-- #site-generator -->'; set_transient( 'catchbase_footer_content', $catchbase_footer_content, 86940 ); } echo $catchbase_footer_content; }
Replace variable
$catchbase_content['left']
in the above code with your desired content. And remove the default action hook and add the new function to the same hook using remove_action and add_action.
Let me know if any problem.
Note: You can find this code in catchbase-core.php line 1410Regards,
MaheshJune 5, 2016 at 11:39 pm #92983monicavilasParticipantHi Mahesh,
thanks for you fast reply!I couldn’t manage to make it work.. I’ve tried to paste the code to my functions.php editor but it didn’t work.. I don’t know where I have to specify the page “Terms and conditions”.
I am considering purchasing the pro version but my concern is, will I have to build everything from scratch? like all the things I’ve done to the child theme won’t work, right?
Thanks again,
Mònica
June 6, 2016 at 10:29 am #92996MaheshKeymaster@monicavilas: Upgrading from Free to Pro won’t cause any data loss. All data and setting will be automatically transferred. If you are using child theme, your codes won’t go in vain either. It will work in Pro as it work in Free version.
Let me know if any confusion.Regards,
MaheshAugust 23, 2016 at 10:32 pm #97915monicavilasParticipantHi Mahesh,
thanks for your answer and sorry for my late reply.
I have finally purchased the pro version but after installing it doesn’t maintain the same attributes and it seems I have to build it from nearly from scrath.. how can I update the child theme with the pro version that I have purchased? can you help me?Thanks,
August 24, 2016 at 11:40 am #97936MaheshKeymaster@monicavilas: Child theme created for Free version will work flawlessly with Pro theme as well, you’ll just need to change the Template and Child theme name. Other codes/functions will work fine. Let me know if any problem.
Regards,
MaheshAugust 26, 2016 at 3:44 am #98118monicavilasParticipantThanks for your answer Mahesh.
What do you mean with changing the child theme name? which name should I use?Thanks again,
Mònica
August 26, 2016 at 10:14 am #98136MaheshKeymaster@monicavilas: I mean, for Catch Base Pro use Catch Base Pro Child Theme so there would be no confusion with the free version’s child theme.
Regards,
Mahesh -
AuthorPosts
- The topic ‘Adding "Terms and conditions"link on the footer’ is closed to new replies.