Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PROBLEM Get Simple CMS – Problems with HTML Data Attributes?
#1
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
-----------------------------------------------------
Premium HTML5 Ad Banners, Google Ads
and Campaigns

https://netrocket.ch
https://www.kontiko.ch
-----------------------------------------------------
Reply
#2
Hi.

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

Hypertexter
Reply
#3
where are you putting this code ?
in template ?

why are you using <section> elements ?
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#4
(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
-----------------------------------------------------
Premium HTML5 Ad Banners, Google Ads
and Campaigns

https://netrocket.ch
https://www.kontiko.ch
-----------------------------------------------------
Reply
#5
your img folder will need a allow htaccess file, it is probably in a restricted folder.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#6
(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?
-----------------------------------------------------
Premium HTML5 Ad Banners, Google Ads
and Campaigns

https://netrocket.ch
https://www.kontiko.ch
-----------------------------------------------------
Reply




Users browsing this thread: 1 Guest(s)