M
M
Maxim Volkov2020-06-10 17:32:38
css
Maxim Volkov, 2020-06-10 17:32:38

Images from the site template are not connected. CSS properties background-image: url() not working, how to fix?

There was a problem when transferring the made-up site template to SMC Bitrix - images from the site template in the local folder, specified in the background-image: url() CSS properties, are not connected .

On the path from the site template /local/templates/Template/images/ - they do not work, but if the folder with images - images is moved to the root of the site - everything works correctly.

A ready-made c css file with styles, already laid out with the help of a preprocessor, is connected to the site template. I understand that something is wrong with absolute/relative references. I really don’t want to create additional folders with pictures, I think the problem has a solution, a correct and rational solution.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Martin Makara, 2020-06-10
@voland700

Most likely your common generated css file is connected from the site root, and you need to set the full path from the site root to the images.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question