Site logo

Archived topic

can't add custom slider from Elements(pro plugin functional)

9 replies · Started by Viktor on March 3, 2022

Viewing posts 1–10 of 10

Hi everybody,

could you help me pls with Siema slider.

as i suppose i found bug in this plugin pro edition.
i add script from function.php (pic_1)
and everything looks good in code (pic_2)
and i add initialisation script with Elements for all site (pic_3)
and i add slider in page code, but this not work as slider(pic_4)
and see my test website: http://direct-info.tk/ (pic_5) - it is not work if i use Elements
i try do it with another slider plugin, same as swiperjs(https://swiperjs.com/) but have same result

Hi there,

if you Right Click > Inspect your site you will see this error in the console:

ReferenceError: Can't find variable: Siema

Your new Siema(); variable is being called before the script has loaded.

You will need to enqueue the script in the head.

And we have same problem if we will use SmartSlider3 and will be add only shortcode in Elements
https://wordpress.org/plugins/smart-slider-3/

and it is not hosting provider problems because with clean wordpress everything works good...

i alredy try to edit hook but slider not work
could you pls see wp-admin

yes i did
and i have same result, slider not work
and all plugins not works that i wrote in my other messages

if it possible could you pls help with the situation, because old versions of your theme and plugins works good.

This problem started after you add code enforcement in Element blocks

Hi David,
i try to test in another browser(firefox developer edition and Google Chrome) bur result not good...
i have only line with all slides but it should be 1 slide with sliding functionality...
i try to init siema slider as in your video but have not good result (pic_8)
And i try to use SmartSlider3 with GP Pro - Elements( insert SmartSlider3 in hook) but plugin not work in Element, work only in standart WP editor(pic_6 and pic_7)
And i try to use "Slide Anything - Responsive Content / HTML Slider and Carousel" with GP Pro - Elements( insert shortcode in hook) but plugin not work in Element and in standart WP editor(pic_6 and pic_7)

Could you pls advise better php version for generatepress , maybe problem it is php version ?
on my local server and hosting provider i use 7.1 - is it normal ?

and pls cheek my admin - element - fp_header(hook) - i think that problem in element code editor

Hi David,
i try to test in another browser(firefox developer edition and Google Chrome) bur result not good...
i have only line with all slides but it should be 1 slide with sliding functionality...
i try to init siema slider as in your video but have not good result (pic_8)
And i try to use SmartSlider3 with GP Pro - Elements( insert SmartSlider3 in hook) but plugin not work in Element, work only in standart WP editor(pic_6 and pic_7)
And i try to use "Slide Anything - Responsive Content / HTML Slider and Carousel" with GP Pro - Elements( insert shortcode in hook) but plugin not work in Element and in standart WP editor(pic_6 and pic_7)

Could you pls advise better php version for generatepress , maybe problem it is php version ?

I don't see the PHP version being a problem. Although for security and performance you should run a minimum of 7.4.
The

Your Siema slider - i showed that it worked, but it probably needs more variable arguments and some CSS to format that.
But lets look at Smart Slider 3:

https://www.screencast.com/t/i76Ytco8f

As you can see - i used a Hook Element and this worked as expected. I also tried it with a Block Element and this worked as well.

You may want to test for plugin incompatibility issues by disabling unncessary plugins

This archived topic is closed to new replies.