M
M
Matvey Tomilov2020-06-17 20:59:19
JavaScript
Matvey Tomilov, 2020-06-17 20:59:19

Why doesn't data-parallax-image work in CMS?

I downloaded a layout template in which there is a line

<section id="page-title" class="full-height text-light parallax-section" data-parallax-image="assets/template/files/uploads/1690x1100.jpg">

When opening the code on a PC, everything works fine, but when I transferred it to modx, the browser stopped showing this picture, all scripts are connected, the paths are set correctly, the browser sees the picture separately.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
secretsergey, 2020-06-17
@etozhematvekat

Lost assets/template/files/js/parallax/parallax.js

F
Froggyweb, 2020-06-17
@Froggyweb

First, put the meta tag <base href="http://askmeplz.com/">
in the second path, I would indicate /assets/template/files/uploads/1690x1100.jpg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question