S
S
Sasha Lutaev2018-02-10 13:19:24
WordPress
Sasha Lutaev, 2018-02-10 13:19:24

How to convert a string with html tags to html so that a font icon is displayed in breadcrumbs?

I have breadcrumbs in them, the link to the main page is displayed like this: Home / ...
I want to replace it with a font icon, but I can’t correctly convert the string with the html code of the font icon to html . Here is such a function. how can it be solved?
5a7ec6fba4261015482925.jpeg
It simply does not output anything when I process the php printf() function with the outputbn number 26 and the font icon is not clear where

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mike, 2018-02-10
@hollister_if

Add icon via CSS
Use :first-child
Or if it's important to do it this way, rewrite templates/global/breadcrumb.php , but esc_htmlleave it anyway.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question