Answer the question
In order to leave comments, you need to log in
How to insert a link in WordPress code to an image?
Hello!
I want to insert a picture into the markup, I prescribe a path for it, but the path in the end is different.
There is a public_html folder on the hosting, and wp-content is already in it.
But when I use the link,
he does not notice this folder, but immediately goes to the wp-cntent folder. Tell me
how to insert a link to the image?
echo get_template_directory_uri();
echo get_template_directory_uri();
Answer the question
In order to leave comments, you need to log in
example.com/wp-content/themes/theme_name - this link is obtained, but you need to essentially
example.com/public_html/wp-content/themes/theme_name
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question