S
S
Serezha2019-03-31 17:15:06
Blogs
Serezha, 2019-03-31 17:15:06

What is the name of auto-attaching icons to words in articles?

Hello. What is the name of automatically adding an icon (small size image) to certain words in articles, for example, in the picture next to the names of the characters their thumbnail is attached
5ca0caaf09b2e352669308.jpeg
:

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Monte, 2019-03-31
@Monte

Most likely it's done with css, something like this .
When publishing a post or article, some plugin looks through the text and frames the names of the characters in some tag with the right css class.

O
Orkhan Hasanli, 2019-03-31
@azerphoenix

Simple option:
Create the required classes... For example, auto, fruit, money
Next, apply and add styles to the required classes. You can add an icon or use font-awesome...
For example,

.money::before {
content: "/f000"; /* или url картинки */
color:red;
}

It remains then to add such a tag to the article <span class="money">bla-bla</span>
. Well, then you can add buttons to the text editor, create shortcodes, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question