R
R
Roma Ishutin2020-07-07 18:54:11
WordPress
Roma Ishutin, 2020-07-07 18:54:11

WordPress image not showing?

Good afternoon, I'm sitting the first day dealing with WordPress, and there is a small problem. Pictures do not want to be displayed on the page. The site is local on OpenServer, I checked all the paths, everything should work. On the Network tab, Google Chrome writes that the pictures are "not found (404)".
5f049a82d07dd958467662.png
5f049aa19ca3e957561963.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dima Polos, 2020-07-07
@dimovich85

All paths should be rendered by wordpress itself, so don't run into trouble. Take the get_template_directory_uri() function and concatenate /assets/blabla/bla.png there - and all this is echo)

A
Anatoly Kulikov, 2020-07-07
@anatoly_kulikov

<?php
echo('<img src="' . get_template_directory_uri() . '/assets/img/woman.png" alt="" />' );

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question