R
R
raspberrywww2021-03-31 16:59:14
URL Handling
raspberrywww, 2021-03-31 16:59:14

Why is the images folder not showing up in the Wordpress theme editor and the images aren't uploading to the site?

Greetings.

When transferring a site from a local environment to a hosting, I encountered a problem:

images are not displayed on the site (I work with Wordpress). There is no images folder in the theme editor, although it is located on the hosting, all other folders are displayed without problems. When viewing the source code, I see that there is a folder and it contains only 1 file (a sprite of icons that are the only ones displayed on the site).

The paths are written using the function <?php echo get_template_directory_uri(); ?>, before everything was displayed on local hosting, all other files (css, js) were connected without path adjustment.

I will be glad for any help.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Viktor Taran, 2018-04-18
@shambler81

RewriteRule ^2017/04/22/(ddddd[^/]).*$ http://site.ru\?p=$1 [L,R=301]

Where
()- a group
[^/]- does not contain a slash
.*$- in fact, only a slash can get here.
$1- first bracket (ddddd[^/])
Now the regular expression instead of numbers
2017/04/22/
is
[0-9]{4}/[0-9]{2}/[0-9]{2}

R
raspberrywww, 2021-03-31
@raspberrywww

Changed permissions + the folder in the source code is displayed, only it contains only 1 file
UPD: The issue was resolved as follows: uploaded the necessary images through Media files in the admin panel and specified the path without the function <?php echo get_template_directory_uri(); ?> in the format of a full link to the image (obtained by clicking on the image in media files). The picture is displayed in this way on the site, but I'm not sure what is the right way to do it, tell me, who knows.

S
Sergey Karbivnichy, 2021-03-31
@hottabxp

No rights to the folder.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question