S
S
Svetlana Galenko2019-09-16 17:11:29
css
Svetlana Galenko, 2019-09-16 17:11:29

How to correctly write the path to images in css styles in october cms?

Hello, the link to images in css styles is not working?
How to correctly connect the path to them?
This link does not work, although the path is correct..

background: url("../assets/images/menu/menu-hover.png") center no-repeat;

Here is the path to the images:
5d7f98049f537198083375.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Adamos, 2019-09-16
@swallow_97

Why "../assets/"? Your css, I suspect, is in assets/css
The full path is /themes/{theme name}/assets/..., it's better not to try to hardcode it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question