Articles of twitter bootstrap

How to install bootstrap in child theme

Something is going wrong when I try to use the bootstrap nav with a child theme and I can’t figure it out for the life of me. The parent theme is called Revera. This is a bootstrap theme. It includes bootstrap.min.js and bootstrap.min.css files. However, the version used appears old and I think it is […]

Different column width in 2 rows with bootstrap and custom post types-different classes needed

I’m using a custom post type on my WP website and also using bootstrap. I want to list 5 custom post type entries on my home page, and I want the first 3 to have class col-md-4 in one row and in the next row 2 cpt entries to have the class col-md-6 At the […]

Hiding carousel indicators if there's only one post

I am working on a custom carousel (WordPress + Bootstrap). The carousel is working without problems. However, I would like to hide Bootstrap carousel indicators and arrows if there is only one post. I was able to hide the carousel arrows by using this code: <?php if ($counter > 1) { ?> <a class=”left carousel-control” […]

How to implement CSS-defined images from bootstrap site in wordpress theme

I am making my own theme from a Bootstrap 3 site that I designed. How do I best implement images that I defined in the CSS in WordPress so that I can change them later and they reference the media library? Specifically, how do I get the background image here to display in my wordpress […]

How to convert bootstrap tab functionality into wordpress using just 1 query?

I’m creating a theme using Bootstrap and want to use the Bootstrap tab functionality in WP. Here is my code and it’s working just fine. As you see in the code below, I’ve used one loop for tab menus and one loop for tab content but I want to use just one loop for both. […]

Use bootstrap for wordpress gallery?

I am wondering if it is possible to rewrite the gallery shortcode output (default wp gallery) to use bootstrap responsive columns. WP gallery is not really working as the rest of my theme. I know it must be a way to do it via my theme functions but I need guide. Thanks.

add bootstrap post slider with tabs

I’m trying to add a carousel with my post. UNder the carousel, some tabs with the post title. On click of the post title, it should change it the slide to display the related post. In ” Static” in works perfectly, but when I put the wordpress loop, the slider stop to work :(. Any […]

Shortcode arguments to another shortcode

I am learning about shortcodes. I’ve made 2 shortcodes that makes an accordion with bootstrap. One shortode (accordionGroup) creates the body that contains one or more shortcodes to make the items and it’s content (accordionItem). Now I need to create 2 different accordion. The problem is: I need a different id for each accordion and […]

Bootstrap modal with jQuery post

I am trying to create a popup and form with validation, but for some reasonthe process.php is not being found I was told to reclairfy my question. I am using the jQuery below to go to my processing file: <div id=”thanks” class=”modal fade” tabindex=”-1″ role=”dialog” aria-labelledby=”myModalLabel” aria-hidden=”true”> <div class=”modal-dialog”> <div class=”modal-content”> <div class=”modal-header”> <button type=”button” […]

Get the featured image url of clicked post

How can I display the featured image of a post in a modal along with it’s content. With the help of a few online threads on similar issues, I tried this: <?php if ( has_post_thumbnail()) { echo ‘<a href=”‘ . get_permalink($post->ID) . ‘” >’; the_post_thumbnail(‘my_feature_image’, array( ‘class’ => “someName” )); echo ‘</a>’; } ?> Which […]