[Support request] Add HTML to the Author Box

Home Forums Support [Support request] Add HTML to the Author Box

Home Forums Support Add HTML to the Author Box

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1625101
    Roberto Tarzia

    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

    #1625152
    David
    Staff
    Customer Support

    Hi there,

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

    #1625941
    Roberto Tarzia

    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.

    #1626118
    David
    Staff
    Customer Support

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.