I
I
Illia T2020-06-29 07:17:26
WordPress
Illia T, 2020-06-29 07:17:26

WordPress: how to correctly organize the path to images through the functions.php file?

There is an option to add get_template_directory() to the link to the picchu, but this is not correct. Correct - report 1 time in the correct way in the correct file. I don't want to be stuck on this issue for too long.
***
If there is a link on a more general topic, regarding paths in general, etc., that would be helpful too.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeniy, 2020-06-29
@Evdokim001

Good afternoon.
In the right place instead of Write<img src = "assets/img/img.jpg">

< img sec =" get_template_directory_uri(); ?>/assets/img/img.jpg">

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question