If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #19834

    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!



    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=" (Purchase code hidden if logged out) " 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! I’m going to pass this on to the slider developer.



    No problem. Good luck. If you dont get anywhere, Ill see if I can give you a better answer if its a free plugin



Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Shortcode/plugin not working on home page’ is closed to new replies.