Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm trying to insert an icon using the font awesome icon plugin, via the

Customisations > Appearance > Site Title

But this just displays the code, not the icon.

Anyone know the solution to this? Thanks!

share|improve this question

1 Answer 1

That setting is html escaped, it means that all the html special chars are converted in the realated html entities, so e.g. < became &lt;.

To print correctly you can use echo html_entity_decode( get_option('blogname') );

However be aware, that blogname option is used by Wordpress and by a lot WP themes and plugins (e.g. SEO plugins) that aspect that options containt text without any html. For this reason, maybe, is not a good idea insert html code in that option.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.