F
F
FRRN2018-08-09 15:00:29
css
FRRN, 2018-08-09 15:00:29

How to upload images in wordpress using css?

The styles in the theme are loaded, but for some reason the images are not.
Links to images of this type

.blue-section {
  background-image: url(img/bg-1.jpeg);
  background-size: cover;
  background-repeat: no-repeat;
}

The img folder is present, the file is also there. And so in all the code.
What can be done about it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Sharomet, 2018-08-09
@sharomet

FRRN , You need to go up a level from the layouts folder (../)
background-image: url(../img/bg-1.jpeg);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question