• Resolved SunnyOz

    (@sunnyoz)


    I have a bootstrap WP theme on my local server with a static home page: front-page.php that I wanted to add a large carousel slider to.

    I just downloaded your plugin and installed the carousel (using <?php echo do_shortcode(‘[image-carousel]’); ?>), and it was working great!

    I had 8 images uploaded into one category. Each one had just a title and no captions. The settings had the slide controls and captions hidden. So easy to install.. and I was very happy.

    Then I decided to add a test catption to the last image, and also change the settings to show captions and show controls.

    I went back to my site to see what the changes looked like.. and the carousel is NOT showing at all.

    I tried to go back to WP admin, and undo the changes (removed caption, changed controls and caption to be hidden), and still no carousel showing.

    Do you have any idea what might have ‘broke’ it? If it was a problem with not having the correct .js or .css, then it should not have shown up in the first place. I just can’t think what could have caused it a problem. Is there some way I can debug why it isn’t showing?

    This is the actual code in the front-page.php file:

    <div class="col-lg-10 col-xs-12">
    
    			<?php echo do_shortcode('[image-carousel]'); ?>
            </div>

    This is what the source code now looks like when I view source on the actual page being displayed. It’s as if it wasn’t coded at all:

    <div class="col-lg-10 col-xs-12">
    
            </div>

    Any help will be appreciated!!

    https://wordpress.org/plugins/cpt-bootstrap-carousel/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter SunnyOz

    (@sunnyoz)

    Ok.. I have gotten somewhere on this.

    I realised I had also changed the setting for “Restrict to Category”. The default is: All Categories. And that allows the carousel to display.

    But when I changed it to my “Front Page” category (which I had previously created, and had assigned all my images to that category.), that is when the carousel didn’t display anymore.

    I am not sure why selecting the Restrict to ‘Front Page’ Category option would cause the carousel code to think there were no images, hence it didn’t need to display the carousel code. All the images have the “Front Page” category ticked.

    Any ideas of what the problem is.. is it a bug in the code, or something else I need to set?

    I am happy now that the carousel is displaying.. and at this point, I don’t plan on having a second carousel displaying on the site. So, for now, I can leave the setting of “Restrict to Category” to be ‘All Categories’. But I would like to know the cause, in case I do want to design a site that has more than one carousel, and therefor would need the categories to be restricted.

    Thanks for any advice!

    Plugin Author Phil Ewels

    (@tallphil)

    Hi SunnyOz,

    Apologies for the slow reply – wordpress.org seems to be really sporadic with which support threads it notifies me about, so I only just saw your post.

    Anyway, glad you managed to figure out how to fix it! Your problem with the categories sounds strange, I’ve not run into any problems like that myself – as you say, if there are no images in the category then the carousel won’t show, but if the images are properly added to the category then it should work. Sorry to cover the obvious, but you’re sure that it’s carousel categories that are being used, not post categories or anything? The images show up when you restrict to that category in the wordpress admin?

    Sorry I can’t be more help at this point – it’s difficult to know what’s wrong when it works at my end 🙂 Let me know if I can do anything else..

    Phil

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Carousel just disappeared!’ is closed to new replies.