Glyphicons Dont Show in WordPress Plugin Only

1st alternative is to use the CDN. When using it the icons are visible: https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css 2nd alternative is to include all resources necessary. When you are using only the min CSS, the console is marking the following resources as not found but required : GET wp-content/plugins/new/fonts/fontawesome-webfont.woff2?v=4.4.0 GET wp-content/plugins/new/fonts/fontawesome-webfont.woff?v=4.4.0 GET wp-content/plugins/new/fonts/fontawesome-webfont.ttf?v=4.4.0 404 (Not Found) Here are … Read more

add class to background image

I have added the style “background-position: center center;” and it work perfectly! So the new code will look like this: <?php global $post; $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array( 5600,1000 ), false, ” ); ?> <div class=”mainblogwrapper” style=”background-image: url(<?php echo $src[0]; ?> ) !important; background-attachment : fixed;background-position: center center;”>

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)