Fresh Garland Release!

It appears somehow the uploads directory I had on my Dreamhost account got wiped out. Nothing important there… except my Garland theme release. Since several people have been asking me about it lately, I thought it was time to wrap up a fresh release.

If you’re looking for the Garland theme for a stand-alone Wordpress blog, you’ve come to the right place!

In theory, this release shouldn’t be any different than the previous one, but I can’t promise that - I don’t recall having made some of these changes previously.

I’ve tried to get in touch with Matt to see if there is any way to get these changes into the Wordpress.com themes repo, but I have not yet heard back from him. In any event, please let me know if you notice any problems!

Changes

In a nuttshell, the changes are purely superficial - URLs mostly. The path for reaching the theme on the Wordpress.com servers differs from that of standalone blogs. Additionally, jQuery is not available on the admin pages of the current Wordpress release by default, while it is on Wordpress.com.

SVN / 2.5 Notes

While testing on the latest copy of trunk, I noticed that the plugin is unable to register its admin page. This is because the page for theme-related config has changed from ‘Presentation’ to ‘Design’ during the admin redesign project. Whether this will be true of the 2.5 release or not, I have no idea.

If you’re trying to run Garland on the bleeding-edge of Wordpress, you’ll want to change ‘Presentation’ to ‘Design’ in the 3rd to last line of functions.php to make sure it knows the proper page to hook into.

Download

Snag ‘er here: garland-standalone_1.5.zip

13 Responses to “Fresh Garland Release!”


  1. 1 bhavesh

    Hello Chris
    Thanks for fresh Garland Release, I am glad to see the clone of default drupal theme. I like it very much, Very soon i will change my theme.

    I would like to make it Google Adsense supported theme…

  2. 2 plonut

    Hey chris! and thanks so much for the garland!

    I’ve been waiting awhile for this, and are VERY glad to see you have fixed things. I just got your email now, that you sent. I appreciate that. Thanks again,

    –plonut

  3. 3 Vzx

    If only this theme was XHTML Valid… I guess I’ll wait

  4. 4 edcel

    hi there, Chris. I’ve been looking for a thread about this Garland theme, i was able to find one through another site, however I there seems to be a problem with the color wheel. It doesn’t show up.

    I was still searching for this template when I stumbled upon your site and this fresh update. After uploading it to my site (Wordpress.org), the color wheel seems okay as it’s there. I tried to change the color theme using the color customizer wheel, I was able to typed the colors that I wanted. But when I clicked on the “Save Custom Colors” option, it just reverted back to the default color settings.

  5. 5 edcel

    hi Chris, i figured it out. Sorry, i didn’t read the whole post. I changed the code from ‘Presentation’ to ‘Design’ in the function.php file. thanks for this template!

  6. 6 pslStu

    Hi Chris

    I appreciate that this post is quite old now, but I’m having a lot of trouble getting the Garland theme to work. I’d be tempted to leave it, but, the blog owner I’m helping out wants this blog in particular.

    Basically, the colour wheel works ok (as in I can pick the colour and hue that I want, with no problems), but the problem I’m getting is when I try to save those colours. The text and link colours save, but the base and heading colours don’t. In fact, instead of saving, they are removed completely, so I’m left with a pretty much blank looking blog. This can be ‘fixed’ by Reset to Default Colors, which does indeed reset the colours. It might also be worth noting that the Preview on the Color Customizer screen also doesn’t show the heading and base colours at all, all you can see is the white.
    (oh, and I have made sure that it’s on Design, and not Presentation).

    I really would appreciate some guidance with this. I’ve scoured the internet, and can’t find anything resembling my issue, or anyone willing to help out.

    Ideally I’d like to get the Saving of colours working, but failing that, I was wondering, where exactly are the default colours saved? - my theory being that I could change the default colours in the theme files themselves, so that clicking ‘Reset to Default Colors’ applys the colours I manually editted.

    Again, I would really appreciate any assistance you could give, and thanks for your time.

  7. 7 Simon

    Hi Chris,

    Thanks for making this available simply for us! I, like the wonderfully named Vxz above, was disappointed to find it’s not valid XHTML though, so I fixed it.

    I don’t use WordPress myself, so I’m not sure how to make sure the code is rendered properly in my comment, so perhaps you can edit this to tidy it up for me?

    in the functions.php file, the foreach block (begins ln. 259) should look like this:

    
    	foreach ( garland_images() as $src => $image ) {
    		if ( is_array($image['el']) ) {
    			foreach ( $image['el'] as $k => $el ) {
    					$url = "image.php?src=$src";
    				foreach ( (array) $image['args'][$k] as $color )
    					$url .= "&$color=" . substr(garland_color( $color ), 1);
    				echo "\n\t$el" . ' { background: ' . garland_color( $image['color'][$k], true ) . " url('" . get_stylesheet_directory_uri() . "/" . urlencode($url) . "') {$image['post'][$k]}" . ' } ';
    			}
    		} else {
    			$url = "image.php?src=$src";
    			foreach ( (array) $image['args'] as $color )
    				$url .= "&$color=" . substr(garland_color( $color ), 1);
    			echo "\n\t{$image['el']}" . ' { background: ' . garland_color( $image['color'], true ) . " url('" . get_stylesheet_directory_uri() . "/" . urlencode($url) . "') {$image['post']}" . ' } ';
    		}
    	}
    

    This just shuffles the generation of the on-the-fly css and image-creation stuff (which is dead clever, btw) around, so that you can urlencode() the query string, side-stepping all those nasty problems with html entities.

    Then just add “” (no quotes!) to line 36 of sidebar2.php, and that should do it (I think).

    @pslStu -

    not sure what the problem is there mate, but the custom settings are saved in the _options table, if you want to watch what goes on there and see if that gives any clues, and the default colours are hard-coded in the garland_colors() function in functions.php, around line 190 or thereabouts. Good luck!

    Cheers!

    Simon

  8. 8 Simon

    oh yeah - I’m messing with WordPress MU, btw. Shouldn’t make any difference (the theme went straight in!), but, like I say, I’m not a WordPress expert so in the interests of full-disclosure…!

    ps. sorry for the double-post…

  9. 9 Abhishek

    Hi,

    I am facing screen resolution problem with Garland template for my site, not all would be able to view it properly and my site get messed up. I would indeed like to have horizontal scroll bar for my screen to get it fit. My site is http://innovideas.blogspot.com
    can you let me know solution for this.

    Thanks
    Abhishek
    http://innovideas.blogspot.com

  10. 10 Chris Meller

    Garland is a flexible-width theme, designed to shrink or expand to the available screen resolution.

    Unfortunately I do not have the time to help people make modifications, so you’ll have to track down a CSS guru somewhere to help you with that.

  11. 11 tcd

    I like a LOT your theme.
    Unfortunately looks like that its “hooks” do not take into account languages settings.

    I have a wordpress blog that is in Italian.

    With your theme, it is pleasing to the eye, but slightly disconcerting for the brain :)

    I suppose I have to delve into the .php parts of the theme

    I also wanted to put in the footer properly-working links to the authors’websites and to your website.

    May I?

  12. 12 Chris Meller

    tcd: I only know English, so I’m not familiar with any language issues. If you get them fixed, please feel free to post a comment or email me (chris@doesnthaveone.com) any changes so I can take a look at fixing the theme for everyone.

    I have no problem with you adding links to the footer. Just make sure you give credit where credit is due - all I did was package it up for download. :)

  13. 13 tcd

    I’m not an expert on WP localization, so for now I just hardcoded by just removing the english-visible pieces and put in its place its italian equivalent.

    I’ll have to take a look at how other themes hook into the language files *sigh* and this takes some time :p (it’s called “learn to drive while driving” lol)

    the footer now says roughly: “Theme: Garland, by Steven Wittens & Stefan Nagtegaal, adapted by Chris Meller for WordPress”

    the “get a blog at wordpress.com” reference was a bit out of place, I daresay :)

  1. 1 Garland Theme with Color Customizer | Edcel - random thoughts of nothingness

Leave a Reply