Add row after three columns

Here’s an idea of what I think you could do if I understand the problem correctly: <div id=”primary” class=”content-area”> <main id=”main” class=”site-main” role=”main”> <div class=” entry-content”> <?php if ( have_posts() ) { $post = $posts[0]; $c = 0; $i = 0; while ( have_posts() ) { the_post(); // start a new row for the first … Read more

WP Media Uploader modal conflicts with Bootstrap modal

Just proxy the modal-open class for Bootstrap like this: .bs-modal-open { overflow: hidden; } .bs-modal-open .modal { overflow-x: hidden; overflow-y: auto; } // or using sass … .bs-modal-open { @extend .modal-open; } Add/remove the bs-modal-open class to the body when opening/closing a BS modal: $(‘.bs-modal’) .on(‘show.bs.modal’, function (e) { $(‘body’).addClass(‘bs-modal-open’); }) .on(‘hidden.bs.modal’, function (e) { … Read more

WordPress Bootstrap Grid

In my opinion, you should use wp-query. Using a sidebar for this purpose will yield problems in the long term. SEO: Sidebars are taken as “aside” content, which is considered less relevant content by search engines. Editor: The editors for the sidebars are much worse than post editors. Reliability: Any change to containers added in … Read more

Custom Thumbnails [closed]

Well i fixed it. But thank you all anyway. <div class=”row”> <h4>Noticias Recentes</h4> <?php // theloop if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php// Define our WP Query Parameters ?> <?php $the_query = new WP_Query( ‘posts_per_page=3’ ); ?> <?php// Start our WP Query ?> <?php while ($the_query -> have_posts()) : … Read more