• Admin

    Fantastic!! Would surely have a go at this in a few days time!!!

  • http://niute.ch/ niu tech

    It too bloated. Why not use body_class() and register_sidebars()?

    Have a look at this super-tiny multi-lingual blank theme to start with: https://github.com/niutech/wp-blank-theme

    • Taty Grassini

      Awesome theme, niu tech!!

      body_class() and register_sidebars() implemented… thanks!

    • http://twitter.com/idsandclasses Dusan Stojanovic

      Wow, your theme is uber-minimal

  • http://leondoornkamp.nl/ Léon

    Thanks for this. great stuff!

    I was just wondering why you use in footer.php
    <script src="/js/cufon-yui.js”>
    to place the scripts, instead of registering them via WordPres with the wp_register_script() and wp_enqueue_script(0 functions. They then can be manipulated to a minify plugin or cache plugin.

    • andykillen

      have to agree, for better performance management using wp_register_script is much better.  As you rightly say Leon, run like this a developer cannot for stop scripts from loading on pages that they are not needed on. 

    • Taty Grassini

      Hey Leon,

      well, I could do that, yeah, but most of that snippet is being used everywhere in the blog pages… I agree about the slider, but, cufon, flickr and twitter are on every page… (maybe it’s because I’m lazy)

      Please don’t forget this theme is 100% open source and you could do whatever you want with it… feel free to fork the Github repo, any improvements suggestions are welcome!!

  • usa webmaster

    Really helpful , thx for ur efforts 

  • http://twitter.com/StarSunFlower StarSunFlower

    Fabulous post! Thank you SO much for sharing <3

  • http://www.equotemd.com/ Michael J. Kovis

    I’m glad to see a detailed WordPress layout article hit my RSS feed.  Always interesting to see how other developers are organizing their workflow for WordPress themes.  Thanks Taty!

  • andykillen

    Hey Taty, nice stuff, I do have some comments for you…

    recommend that you use http://codex.wordpress.org/Function_Reference/wp_title wp_title and not bloginfo to populate the tag.  That way you will be all setup for SEO plugins also.

    Also agree with others that mentioned body_class(), much better to use than a custom class that provides only information if a post is on screen.  

    And if you do cut and paste from this page, watch out for the // and not http://

    Maybe you can help me, I can’t see the benefit of having the not finish inside the header.php.  

    apart from me being picky, a really good article. 
    regards
    Andy

    • Taty Grassini

      Hey Andy,

      Title and body tags have been updated (on the Github repo).

      The // you mention are “protocol-relative URLs”, you could read more about it at http://adactio.com/journal/4795/ (this is being implemented by html5boilerplate by default, check lines 48 and 70 https://github.com/h5bp/html5-boilerplate/blob/master/index.html)

      Not benefit on cutting chunks of code in header, footer and so on… Just the way I like it… Have you seen the Twenty Eleven header.php? :)

      • andykillen

        Cool. my worry on the // front was more that people will cut and paste just a part of the code and then end up with it trying to load a local file from the file system.

        • Taty Grassini

          Fixed and tested! 

          jQuery CDN with relative URL and local file fallback in case readers test this theme on their local machines.

          Have in mind, no Flickr and Twitter feeds will render. Other than that, the slideshow and Cufón fonts selectors are rendering pretty sweet with the local jQuery :)

          • andykillen

            GREAT STUFF!! really cool of you Taty

  • P.H.

    I hate to do this but W3.org markup validation service returns:
    21 Errors, 1 warning(s)

    • Taty Grassini

      11 Errors, 2 warning(s) — Most of them are HTML5 related.

      Twenty Eleven has 32 Errors, 3 warning(s) :-/

    • Andy Killen

      Hey PH, the last time I checked the W3 validation services do not cover fully

      - HTML 5
      - CSS 3

      As this theme uses both, I expect that is where the errors and warnings sit.

      regardsAndy

  • http://tusrecetasfaciles.com/ Alison recetas faciles

    This gagdet HTMl works in JImdo

  • itzurkarthi

    Very userful post… really love it

  • http://www.geniusthesis.com/ Bharat Mandava

    Awesome post, this tutorial is really helpful to create a cool WordPress theme from scratch, will bookmark it.

  • http://tutorialsmad.com/ Asho

    WordPress want to use single format… for every update they are changing their theme structure… it is really difficult for occasional theme developers…

  • Sadiqgarden

    Very userful post… really love it

  • http://webdesy.com/ Tobias

    Great tutorial Tatty. Thanks for sharing this.

    P.S. The Brilliante Layout theme looks great. Simple but great

  • http://www.ocularcolumbus.us/ Columbus Graphic Design Firms

    Very informative tutorial….

  • http://www.facebook.com/sum.sim Sumit Gomes

    Theme is not working properly. After following everything step by step I’m getting a broken view. :(