Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #92813
    monicavilas
    Participant

    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

    #92829
    Mahesh
    Keymaster

    @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 1410

    Regards,
    Mahesh

    #92983
    monicavilas
    Participant

    Hi 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

    #92996
    Mahesh
    Keymaster

    @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,
    Mahesh

    #97915
    monicavilas
    Participant

    Hi 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,

    #97936
    Mahesh
    Keymaster

    @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,
    Mahesh

    #98118
    monicavilas
    Participant

    Thanks for your answer Mahesh.
    What do you mean with changing the child theme name? which name should I use?

    Thanks again,

    Mònica

    #98136
    Mahesh
    Keymaster

    @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

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Adding "Terms and conditions"link on the footer’ is closed to new replies.