From my Plugin Settings Page use check boxes to load specific css files (e.g. Bootstrap / Foundation)

You will have to create a settings page on which you will have to register your settings. Unfortunately this is no easy task, but it has been very well documented on tutsplus. Once you have implemented the settings api, you can check for the options that have been set with your settings page. Depending on … Read more

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;”>