My WordPress theme

I finally, finally got the ball rolling on what will be my theme and theme structure for this site! I am so excited about this. After having read so many posts about templates, CSS, OOCSS, SaSS, PHP and just about any random acronym you can possibly think of I finally have a name for the theme and the look.

The name is actually inspired, of course, by Flamenco. I am calling the theme: Soleá. The name is a the type of compás, or time signature that is in one of two forms. 3/4 and 6/8 time is a simple way of putting it but there is more to it. It doesn’t really follow the basic musical pattern but I’ll let you research that on your own if you want to really learn more about Flamenco music.

I am slowly learning how to work with TortoiseSVN as my local version control and will try to gain more knowledge with github with this theme as time progresses. I know that my second theme will be a lot easier to work with once I get the hang of my workflow and work area.

Photoshop is a great tool and I love using it. Notepad++ and I have been getting along more and more and Chrome has been very dear to me in this learning process. Forums and web articles I have read are great and taught me not only new techniques but also helped improve my way of thinking about programming.

The theme is a simple theme with very few images to cut load times. The colors I have chosen are black, a dark blue, a grey tone, and blue tone as an accent and for emphasis for certain elements like links and some headers.

The only images I chose to use are for the header and maybe a divider for the bottom of the article when being viewed as a list of and not a single view. The one view that will be a little tricky to finagle will be getting the gallery the way I want.

There are so many ideas that I want to use for the gallery format postings but I think I may just go ahead and implement a simple one. Click on an image and it takes you to the single image page and not having a modal window with the gallery of images; that version I’ll try to implement for the next theme or maybe as an update.

The reason I am wanting to release said theme is because I want to learn more about web development and I hope to share my learnings with the community as well as others. So in the next three, or four weeks, please don’t be alarmed if I start posting three things in one day about code. It will serve as a way for me to organize my thoughts and ideas as well as sharing my pains with the world and hopefully some people gain some insight how to code for their own projects down the road.

Keeping WordPress on my mind

I keep posting on this about how code is becoming a part of my life and yet I have yet to actually post any of it; It is really depressing to see and read. So, here goes: With the project I have been working on (my site) I have been working with how WordPress handles its files and queries. It has been good seeing and interacting with it all. A good, and quick, example of how it works is here.

With that in mind I have thought about how I want certain things to look on the front page of the site. So, this would entail that WordPress will look for one of many pages. The first one it will look for is

home.php

and then it will look for

index.php

if it doesn’t find the first file. That is, of course, if I am using WordPress as a blogging tool otherwise it will look for the

front-page.php

if I have it set as a CMS (Content Management System ).

The files I have created so far are the basic ones that WordPress needs to be read/seen in the Appearance panel. They are comprised of

style.css

and

index.php

which are the two minimum required files. The front/home page so far will of course have a featured/sticky support but will be able to use the excerpt if the post has it filled out otherwise it will just post the entire content. That little snippet looks like:

<div class="entry-content"></div>
<pre>
    <!--?php if( has_excerpt() ) : the_excerpt(); else : the_content(); theme_linked_pages(); <span class="hiddenSpellError" pre=""-->endif;?>
</div><!-- .entry-content -->

The next stage will be creating the look of how an individual post will look like. That file is called:

single.php

. It will look fairly close to the homepage layout but of course there are going to be subtle differences. I’m debating if I really want a sidebar on the entire site but I know it will be useful for simple navigation.

Now, WordPress uses functions as template tags. Case in point:

the_content()

. It displays the content of the post when used inside of a WordPress loop. I have created a simple

functions.php

file that will house all my custom functions for the theme. In that file I inserted:

function theme_setup () {
        // Add post format support
        add_theme_support( 'post-formats', array('aside', 'image', 'link', 'quote', 'status') );
        // Add theme support for custom background
        add_theme_support( 'custom-background', array('default-color' => 'fff' ) );
        // Add theme support for Post Thumbnails
        add_theme_support ( 'post-thumbnails' );
        // Register the menu
        register_nav_menu ( 'primary', 'Main Menu');
    };

What that little snippet does is create support for post formats, custom background support, thumbnail support and creates a menu holder for my theme. I’ll explain those things down the road – hopefully.

Now, up until recently I have only really posted photos of what my site will look like. This has been a great experience on how my site will look like when I actually start posting more and more code since I am using a plugin to create the syntax highlighting. Taking a turn into the code side of web development will be a great thing for me. Now to explore more about theme development and WordPress.

My blog site

This blog site has been a great thing for me. I have learned so much about myself by actually writing about my thoughts. It has opened my mind to how I really feel about life and the world around me.

I have been experimenting more and more with web design and development. I can’t wait until I finally finish my site’s final design. There are so many resources that I have used in order to create the final look of the site. When I get a moment or possibly the next day that I have off I will try my best to create a simple tutorial on how to create a simple local server to test websites. Granted there are plenty of tutorials out there as well but this one will be more suited to me since it dealt with my experience.

The one thing that I am debating is what fonts I want to use because there are so many elements that I want to include but I don’t want to throw off the feel of the site entirely. As many people have come to know I have fallen head over heels about type. I am in the midst of creating a post about how type has influenced my daily life. Yes, it does sound a little odd but it will make sense when it is finally published.

Recently, I have been looking at lines of code in order to create my site. Some of the things that I have learned are that I need to read more and more. Not just code but books and articles in general. I have so many unfinished books on the shelf that they have practically gained weight from all the dust they have collected.

The other thing that struck me as interesting while redesigning my site was looking at exactly what I post and how I can stylize how I like it. There are several things that I post but I know I don’t use the full potential of WordPress when I could be. I have learned about the subtle differences between digital publishing and physical but that will be for my type posting.

In the meantime I will keep reading about programming, art, design, type and how to merge them together into one good-looking blog that I call my own.

My Notepad++ take

Over the years I have loved working with code and can recall when I first saw those little lines that created a table to create a two column page and used simple graphics as the background of the entire table. I was using Microsoft’s FrontPage editor to not only create my own pages but to look at the lines of code other pages were using. From that I learned how to create simple things like links, images and the basics of how a web page is created.

Several years later I found out about Adobe’s GoLive program and wanted to try it out. I downloaded a demo and fell in love with the WYSIWYG (what you see is what you get) editor but quickly realized that it wasn’t for me. I loved seeing the curly braces, the semicolons, greater than, ampersand and all the dancing characters that actually made the page a page and gave it the theme it did.

A few more years pass by and now Adobe has DreamWeaver. I, of course, tried that out and loved being able to switch between the two but still wasn’t fully in love. I will never really be satisfied, I guess. I have weird expectations when it comes to things like that, but that is besides the point. I knew I wouldn’t be able to afford the program so I ventured out to see what other available code editors were available. I found several but the one that I still use to this day is Notepad++.

The main reason I fell in love with it was the ability to change the theme to my own personal one. I could create one and choose to share with the community if I wanted. (I have yet to create a custom theme but will be when I have a lot more time to.)

Aside from the ability to change themes the biggest reason was the syntax highlighting of the program. Being that it is free doesn’t hurt much either. Recently a new version came out and they added a few more things to make me want to keep using it more and more. The best feature for me is the document map. It helps so much when looking over the nearly nine thousand lines of code that make up the development version of jQuery to understand how it works or looking at the beautiful code that makes up WordPress.

Document Map

Along with the ability to quickly look over the lines of code is the ability to quickly change themes. There are a few that come already with it but I use one that I found here. It is a simple one for web developer/designers but it is somewhat limited when it comes to other language support in syntax highlighting. For me it does the job on a smaller screen and for my main computer I like using a darker style so I can keep looking at the screen just a few more minutes longer.

Theme selection

Along with styles there several plugins that make it all worthwhile to code an iOS app, site or simple script. For those site developers using the native FTP support is extremely simple and rather intuitive. Nothing fancy for me which is what I love in FTP support. You have the ability to create several profiles (sites) and connect/disconnect when you please. Besides FTP, there is also REGEX support and many, many more plugins. The newest one being PCRE (Perl Compatible Regular Expressions) support and I know that once I get a good book on Perl and regular expressions I will be using that to its full extent.

Plugin manager

Being able to connect via FTP is good and being able to read all those lines of code is what a code editor should really be about. Having the ability to change the font to what I like and the colors to my choosing so I can differentiate between what is a comment and what is actual code is essential when it comes to developing and creating a good web app.

JavaScript syntax highlighting

But what is a good editor without the ability to expand and collapse? One of my favorite features of Notepad++ is the ability to do so. Almost a perfect model of what a document tree is. That is one feature that I have used since the first day I installed it in on my computer.

With technology making things much, much easier to distribute in the next release I can’t help but wonder what will be next. The one thing I would love to see is either a plugin that has support for version control or have that be part of its core program. Only time will tell.