Adding a link to the footer
-
Hi, in the footer I want to add a link for the GDPR. So I tried to change my functions.php in the child theme:
Copy the line with disclaimer and replace the link to my new page, results in a error 500.
Just copy this line, is showing two links to the disclaimer in the footer, but changing it leads to a blank website.
Adding the code between ‘ ‘ behind new_line credits, isn’t showing the link.I want to add this link:
<a href="http://www.farcows.nl/privacyverklaring/“>Privacy</a>And I have this code:
// Adding a disclaimer in the footer before credits. add_filter('tc_credits_display', 'my_custom_credits', 20); function my_custom_credits(){ $credits = ''; $newline_credits = ''; return '<div class="span6 credits"><p> · © '.esc_attr( date( 'Y' ) ). ' <a href="'.esc_url( home_url() ).'" title="'.esc_attr(get_bloginfo()). '" rel="bookmark">'.esc_attr(get_bloginfo()).'</a> · '. '<span class="tc-credit-text"><a href="http://www.farcows.nl/disclaimer/">Disclaimer</a></span> · '. ($credits ? $credits : 'Designed by <a href="http://www.presscustomizr.com/">Press Customizr</a>').' ·'. ($newline_credits ? '<br />· '.$newline_credits.' ·' : ''). ' <span class="tc-wp-powered-text">Powered by <a class="icon-wordpress" target="_blank" href="https://wordpress.org" ></a></span> ·</p> </div>'; }What am I doing wrong, help?
And is there something else wrong with the footer, because I’m not getting images anymore …The page I need help with: [log in to see the link]
-
Thanks emranemranx,
That is an easy way to be creative in the footer!
The next challenge is to edit the last line. Like, not showing it anymore…Checking the box for awesome font was the trick to solve my problem with the images.
Keep up the great work!
Okay, solved it in another way!
The credits are still in place, as it should.I simply changed some links and it’s done.
Again, thanks. Great theme!
The topic ‘Adding a link to the footer’ is closed to new replies.
