GetSimple Support Forum
PROBLEM Get Simple CMS – Problems with HTML Data Attributes? - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: PROBLEM Get Simple CMS – Problems with HTML Data Attributes? (/showthread.php?tid=8703)



Get Simple CMS – Problems with HTML Data Attributes? - Sveninho - 2016-09-07

Hello
I'm working on a new Project using GetSimple CMS again. In this Project I'm using Pixelcoq's parallax.js. to slighly animate the images on scroll. (http://pixelcog.github.io/parallax.js/)

I'm targeting the images via HTML Data Attributes. Using GetSimple CMS I'm targeting the image folder as usual:

<section class="parallax-window" data-parallax="scroll" data-position="top" data-bleed="100" data-speed="0.3" data-image-src="<?php get_theme_url(); ?>/img/image.jpg" data-natural-width="1920" data-natural-height="1281">

           </section>

For some reason the images do not display after uploading to the server. I tried to fix it with targeting the images using JS but that doesn't work either ...

Ideas, solutions how to fix this are more than welcome.

Sven


RE: Get Simple CMS – Problems with HTML Data Attributes? - Hypertexter - 2016-09-08

Hi.

Just to be sure: you do not have a Javascript blocker enabled for that web site?

Hypertexter


RE: Get Simple CMS – Problems with HTML Data Attributes? - shawn_a - 2016-09-08

where are you putting this code ?
in template ?

why are you using <section> elements ?


RE: Get Simple CMS – Problems with HTML Data Attributes? - Sveninho - 2016-09-08

(2016-09-08, 02:16:24)shawn_a Wrote: where are you putting this code ?
in template ?

why are you using <section> elements ?

Yeah! Is that wrong?

But I solved the problem. I made an image folder outside the CMS on the server and linked the images to that folder. It might not be the cleanest fix but it works.

You can check the website now (not finished yet): www.countingsheepcorner.com


RE: Get Simple CMS – Problems with HTML Data Attributes? - shawn_a - 2016-09-08

your img folder will need a allow htaccess file, it is probably in a restricted folder.


RE: Get Simple CMS – Problems with HTML Data Attributes? - Sveninho - 2016-09-08

(2016-09-08, 02:40:46)shawn_a Wrote: your img folder will need a allow htaccess file, it is probably in a restricted folder.

Which one? The folder inside GetSimple or the one I made to fix the bug?