Site logo

Archived topic

Add HTML to the Author Box

3 replies · Started by Roberto Tarzia on January 19, 2021

Viewing posts 1–4 of 4

Hi I'd like to add some HTML code in the author box, I added this code to the function.php but it doesn't seem to work

remove_filter(‘pre_user_description’, ‘wp_filter_kses’);
add_filter( ‘pre_user_description’, ‘wp_filter_post_kses’);

How can I solve?

Thanks

Hi there,

what plugin or code are you using to display the Author Box ?

The article template is developed with elementor, the elementor widget for biographies fetches data from the bio inserted in the wordpress user page. The problem is that even if some html code is inserted in the bio, as soon as it's saved, all the html code is sanitized.

You would need to check with Elementor as to how it is outputting that author bio.

This archived topic is closed to new replies.