Using Duotone Theme For WordPress

The Duotone theme for WordPress has been recently released. As a former user of Monotone i really appreciated the news; Duotone is both an evolution and a new version of Monotone: it is widget-enabled and it gives the possibility to show all the links to the additional pages, which is something i would expect from a wordpress theme.

I think that it is optimized to be used on wordpress.com blogs and it is also possible to have it on self-hosted blogs. However, not everything is working out-of-the box: you may receive some warnings and encounter some problems, expecially on archives.

Noel, the developer of Duotonone, released version 1.0.1 to solve some of them.

Waiting for a major release to fix them all, here’s what i did to make it work on my wordpress 2.9:

1) Error on all pages “Missing argument 1 for is_vertical()”

I found line 18 in the function.php files and change it from

$width = (is_vertical() ? MIN_WIDTH : MAX_WIDTH;

to

$width = (is_vertical($post->image_url)) ? MIN_WIDTH : MAX_WIDTH;

2) Error on some posts “getimagesize() [function.getimagesize]: Filename cannot be empty
I’ve worked on contents to make sure that every post had an image associated

3) Error on archives “Missing argument 1 for get_year_link()

I took the file header.php and changed the line
<?php echo get_year_link(); ?>

to

<?php echo get_year_link(''); ?>

4) 404 not found error on archives page
I worked on content to have at least one item posted in the last year ๐Ÿ™‚

Here’s the thread on the wordpress forum: http://wordpress.org/support/topic/346122

Hope it helps!

Happy new year

PS: Duotone is not currently in use on this blog. Here’s how it looked like:


Comments

10 responses to “Using Duotone Theme For WordPress”

  1. Hi. I’m using duotone 1.0.1 as my theme for my wordpress photoblog. I did try to fix those lines as mentioned in the above note. However, all of my images didn’t show up. Could you please show me how to fix this problem?

    Thanks.
    Duc.

  2. Hello! This is very strange because at the very beginning when i installed Duotone i saw the same behaviour: no images and many warnings. But i didnt solve the first problem directly; i started playing with the php files as mentioned above and the images were simply there again… I saw also the other comments on the official thread.. could it be a matter of permissions?

  3. Hi. I’ve checked the permission and it isn’t the reason. I have tried to delete the theme and install it several times. However, none of them work. Do you know how to fix this problem? I’m thinking about the problem with the host I’m currently using. It’s a free host from 000webhost.

  4. Really, i don’t know. I was thinking about permissions because i had some troubles on with my hosting provider (aruba); it expects different permissions on files and folder than the ones that wordpress is using by default and sometimes when i’m installing l plugins and updates i have to reset them.
    At this point maybe the dev guys can help (noel? ๐Ÿ™‚

  5. Thanks for providing this. I’ve been wrestling with the theme for two days and was close to giving up. I’ll impliment Monotone for now and switch over in a day, once I’ve had a good night’s rest.

  6. Hope you can make it. Let us know!

  7. Wow!

    I thought I was the one with the problems … I installed a second installation of WordPress on the same account ( my main blog is RichImages.net and the photoBlog I just installed with this theme is RichImages.net/showcase/ )

    I also am looking into the code a bit … this is going to rock when everything is sorted out!

  8. I’d really like to use this, i’m just starting my first blog. But i’m stuck with one thing. Say i have a main image on a page…

    Below this i was planning to put links to other pages.

    Beside the links i wanted thumbnail images. But these won’t show up?

    I don’t understand much web terminology. I’m happy to try and read a lot of anything to figure it out but i just don’t know where to start.

    So if there’s anything i can do to get these little images up as well as the main one i’d love to know.

    thanks so much ๐Ÿ™‚

    elva

  9. @elva

    to have the small photos below the main one, i usually put in the post the shortcode to a gallery made with the plugin next-gen gallery

    It shows like this:
    http://www.stilemosso.it/2010/03/jazz-wide/

Leave a Reply

Your email address will not be published. Required fields are marked *