There doesn’t seem to be an easy way to do this via a plugin, as the plugin code is likely added after the header is created. I’m a little confused by this.
You can add it to your functions using the wp_head filter or hard code it into your header. This seems like a really bad way to do something that should be simple.
If you find a way to do it, please let me know and I will incorporate it into the plugin.
I’ve just linked to it in the header like this for now:
<link rel=”stylesheet” href=”http://yourdomain.com/wp-content/plugins/thumbnail-grid/css/thumbnailgrid.css”>
At least it looks ok when it loads and doesn’t have the slight delay like before in loading it’s style.
Also edit the plugin file thumbnailgrid.php like so:
function bkthumbnailgrid_handler($atts) {
//Include Stylesheet
/* wp_enqueue_style(‘thumbnailgrid’, plugins_url(‘css/thumbnailgrid.css’, __FILE__)); */
$output = bkthumbnailgrid_function($atts);
return $output;
}
function thumbnailgrid_handler($atts) {
//Include Stylesheet
/* wp_enqueue_style(‘thumbnailgrid’, plugins_url(‘css/thumbnailgrid.css’, __FILE__)); */
$output = thumbnailgrid_function($atts);
Thank you very much for sharing that! By the way, WordPress temporarily removed my plugin for a little while because I was using yourdomain.com. It turns out that that domain links to a spammy site and you should be using the much safer domain example.com as an example instead.
Thank you for the heads up regarding yourdomain . com
I’ll try to avoid using that link in the future(i’ll just use mydomain).
Also i think you can mark this topic as solved 🙂
This appears to have been fixed in wordpress. I am seeing style sheets loaded into the header now, but I’ve also moved the loading of the stylesheet.