Hueman theme is one of the best free WordPress Themes on WordPress.org Theme repository, it is currently being used by more than 70,000 active WordPress sites allover the world (including WP Made Easy) and rated 5 out of 5. Hueman is mobile-friendly blogs, magazines and business websites WordPress theme. I’ve personally had problem adding HTML codes to Hueman copyrights section in the theme footer as it ONLY accepts text and if you added HTML codes to it it will not be executed and the code will appear as text, in this article I will help you solving this problem.
How to add HTML to Hueman Copyrights section in theme footer
I faced this problem when I tried to add links to my site copyrights line and the HTML code appeared as it is without being executed so the links didn’t appear, this problem is caused by WP esc_attr() function which automatically removes HTML from the content, so what you need to do is to stop this function by removing it from the footer.php code in your theme by following steps below.
#1 Copy footer.php file to child theme (create child theme if you don’t have one yet).
#2 Go to your WordPress Admin panel >> Appearance >> Editor.
#3 Edit footer.php file of your child theme.
#4 Find this code near the bottom of the file:
<div id=”copyright”> <?php if ( ot_get_option( ‘copyright’ ) ): ?> <p><?php echo esc_attr( ot_get_option( ‘copyright’ ) ); ?></p>
#5 Replace the third line of the code above with this one:
<p><?php echo ot_get_option( ‘copyright’ ); ?></p>
#6 Save the file and your HTML code should work now.
If you faced any problem or have any thing to add, feel free to leave a comment below!