M
M
Maxim Borisenko2020-06-11 17:54:04
WordPress
Maxim Borisenko, 2020-06-11 17:54:04

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?

<?php echo get_template_directory_uri(); ?>


<?php echo get_template_directory_uri(); ?>


Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Borisenko, 2020-06-11
@makbori

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 question

Ask a Question

731 491 924 answers to any question