Connect with us

WordPress Themes

[FIXED] Can’t Add HTML to Hueman WordPress Theme Copyrights section in Footer

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:

#5 Replace the third line of the code above with this one:

#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!

Click to comment

Leave a Reply

Advertisement

Must See

Advertisement

More in WordPress Themes