Though there are a lots of image slider programs are already there but if my favorite Framework has a built in Image slider then why to use another image slider that not only add some extra byte in my WordPress theme but also add some extra CSS code and slow down my website?
You all are aware about the fact that I am in this business for more than 4 years and developing Adsense optimized WordPress theme that is also superfast but when I decided to switch over to responsive themes then it was bootstrap that is one of the most used framework and it coupled with a lots of jQuery plugins, carousel is one of them.
2. Carousel-inner : This part basically controls the image, header,paragraph and appearance of buttons on images. Carousel Inner is further divided into two divs Item and item active. For your ready reference just once more check out its working
<p>Note: If you’re viewing this page via a <code>file://</code> URL, the “next” and “previous” Glyphicon buttons on the left and right might not load/display properly due to web browser security rules.</p>
Problem in Implementing BootStrap Carousel in WordPressa
There are several problem in implementing any carousel in WordPress few of them are as follows
1. WordPress display any single page or post from different files these files may be coming from Database Attribute, WordPress theme Template or A plugins, and also these image are mostly , either available through post image or featured images.
2. Bootstrap Carousel need one active image and remaining as inactive image to start its functiong
1. For the sake of this tutorial we are taking a custom loop to find out three recent post from a dummy post category ‘Cars’ and using a php variable we will set first featured image of our post as active and another two post as its item. So out solution will look like this . For this I have defined a new file carousel.php file
The Whole concept was developed by the man you are watching here. I am rakesh Kumar Serial Niche Blogger and SEO Enthusiast. find me onfacebookandon twitter.. Developed popular WordPress theme for Wallpapers and funny Image WordPress theme. Love SEO optimized WordPress theme Designing and Customization.