I am trying to use a horizontal slider/carousel on the home page of the Corona theme (AllSlider plugin). I have inserted this as a page in the template builder, however the shortcode does not seem to work on the home page, see http://www.sbirhub.com and instead just stacks the slides for the slider. This same page/shortcode works perfectly when used as a separate page, e.g., http://www.sbirhub.com/test-page. I have tried deactivating all other plugins to see if there was a plugin conflict but there is not. Any ideas why it works in one situation and not another? If this is a conflict between the plugin and the theme, can you recommend another similar horizontal product slider/carousel that does work with the Corona theme and can be used on the home page? Thanks!
Shortcode/plugin not working on home page
4 posts from 2 voices-
Posted 3 months ago #
-
Hi,
The main problem causing the slider to show up not as a slider on your home page and just fine on a different page is that your main page contains no javascript files or css files from the slider plugin while the other page has 1 css and 2 javascript in the footer of the page that works.
<link rel="stylesheet" id="ilc-all-slider-css-css" href="http://www.sbirhub.com/wp-content/plugins/ilc-all-slider/css/ilc-all-slider.css" type="text/css" media="all"> <script type="text/javascript" src="http://www.sbirhub.com/wp-content/plugins/ilc-all-slider/js/jquery.carousel.js?ver=5.5.6"></script> <script type="text/javascript" src="http://www.sbirhub.com/wp-content/plugins/ilc-all-slider/js/ilc-all-slider.js"></script>So the question is, what prevent the slider from enqueueing in the first location but not the second. Since I don't have the plugin code in front of me I will try to use my ESP. I see a poorly written block of code somewhere in the plugin that may look like if (is_page() || is_post()) { enqueue ...the above files} ... You need to check the plugin and investigate just how the plugin enqueues those 3 url's above, and use some of Wordpress conditional tags http://codex.wordpress.org/Conditional_Tags to make sure that those files are added to home page as well as any other places you may need them.
------
Off topic:You are missing the following file, causing an error on the page http://sbirhub.com/images/skin-minimal/bg-header.png ... Chances are you are not referencing it correctly, since that file can be found under this url. http://www.sbirhub.com/wp-content/themes/corona/images/skin-minimal/bg-header.png . Please check your quick css for a block
#header { border-bottom: 1px solid #eee; background-image: url(../images/skin-minimal/bg-header.png); background-repeat: repeat-x; background-color: #ffffff; }and change the url to be without ../ .. or use the full url i pasted above.
Thanks,
Nick
Posted 3 months ago # -
Thanks Nick! I'm going to pass this on to the slider developer.
Posted 3 months ago # -
Hi,
No problem. Good luck. If you dont get anywhere, Ill see if I can give you a better answer if its a free plugin
Thanks,
Nick
Posted 3 months ago #
Topic Closed
This topic has been closed to new replies.














