Slider Doesn't work on Other Language Pages
-
0
down vote
favorite
I’ve got a very strange problem with this website. The background slides appear when your on the English Language flag but when its switched to The Spanish flag or Other flag the backgrounds don’t appear. Link to websiteThe background slides are generated via a plugin called WP Supersized, Its set to display on every page in the options menu, but doesn’t seem to work for the alternative language pages. I believe its because the url address changes to .es and ru so it looks in the incorrect filepath for the images.
debugging code that gets displayed on the ES Version of the website – as you can see the filepaths are cut short.
<script type="text/javascript"> jQuery(document).ready(function($) { $.supersized({ slideshow : 1, autoplay : 1, start_slide : 0, random : 1, slide_interval : 15000, transition : 1, transition_speed : 1000, new_window : 0, pause_hover : 0, stop_loop : 0, keyboard_nav : 0, performance : 3, image_protect : 1, image_path : 'https://diamovitcarhire.com/wp-content/plugins/wp-supersized/img/', min_width : 0, min_height : 0, vertical_center : 1, horizontal_center : 1, fit_always : 0, fit_portrait : 1, fit_landscape : 0, thumbnail_navigation : 0, thumb_links : 0, slide_counter : 0, slide_captions : 0, slides : [ {image : 'https://diamovitcarhire.com/wp-content', title : '', thumb : '', url : ''}, {image : 'https://diamovitcarhire.com/wp-content', title : '', thumb : '', url : ''}, {image : 'https://diamovitcarhire.com/wp-content', title : '', thumb : '', url : ''}, {image : 'https://diamovitcarhire.com/wp-content', title : '', thumb : '', url : ''}, {image : 'https://diamovitcarhire.com/wp-content', title : '', thumb : '', url : ''}, {image : 'https://diamovitcarhire.com/wp-content', title : '', thumb : '', url : ''}, {image : 'https://diamovitcarhire.com/wp-content', title : '', thumb : '', url : ''}, {image : 'https://diamovitcarhire.com/wp-content', title : '', thumb : '', url : ''}], slide_links : 'blank', progress_bar : 0, mouse_scrub : 0 }); }); </script> Code on the Page the slider works
<script type=”text/javascript”>
jQuery(document).ready(function($) {
$.supersized({
slideshow : 1,
autoplay : 1,
start_slide : 0,
random : 1,
slide_interval : 15000,
transition : 1,
transition_speed : 1000,
new_window : 0,
pause_hover : 0,
stop_loop : 0,
keyboard_nav : 0,
performance : 3,image_protect : 1,
image_path : ‘https://diamovitcarhire.com/wp-content/plugins/wp-supersized/img/’,
min_width : 0,
min_height : 0,
vertical_center : 1,
horizontal_center : 1,
fit_always : 0,
fit_portrait : 1,
fit_landscape : 0,
thumbnail_navigation : 0,
thumb_links : 0,
slide_counter : 0,
slide_captions : 0,
slides : [
{image : ‘https://diamovitcarhire.com/wp-content/supersized-slides/slide-1.jpg’, title : ”, thumb : ”, url : ”},
{image : ‘https://diamovitcarhire.com/wp-content/supersized-slides/slide-11.jpg’, title : ”, thumb : ”, url : ”},
{image : ‘https://diamovitcarhire.com/wp-content/supersized-slides/slide-12.jpg’, title : ”, thumb : ”, url : ”},
{image : ‘https://diamovitcarhire.com/wp-content/supersized-slides/slide-13.jpg’, title : ”, thumb : ”, url : ”},
{image : ‘https://diamovitcarhire.com/wp-content/supersized-slides/slide-3.jpg’, title : ”, thumb : ”, url : ”},
{image : ‘https://diamovitcarhire.com/wp-content/supersized-slides/slide-5.jpg’, title : ”, thumb : ”, url : ”}],
slide_links : ‘blank’,
progress_bar : 0,
mouse_scrub : 0
});
});
</script>`
Any help would be great appreciated.Thanks
https://www.ads-software.com/plugins/slideshow-jquery-image-gallery/
- The topic ‘Slider Doesn't work on Other Language Pages’ is closed to new replies.