Get WP header working

Recently made the decision to shift from adding own logo to using the built-in header. I used to have the uploading in theme options for better editing when installing the theme. However, it comes to my concern that, not everyone has the idea of cropping, not to mention, Photoshop it.

Placing the graphic editing of WordPress to theme option is a bunch of work and of course resource taking if not develop properly. So the header it is.

First off, define the size and text, here I got no header text, force to use logo:

define('NO_HEADER_TEXT', true );
define('HEADER_IMAGE_WIDTH', 400);
define('HEADER_IMAGE_HEIGHT', 140);

Then add the function, I still hate WordPress don’t built that in first for us to eliminate instead.

add_custom_image_header( 'header_style', 'admin_header_style' );

Now we need to create both function (header_style and admin_header_style):

function header_style() {
if( '' != get_header_image() ) : ?>
<style type="text/css">
.header-title {
display: block;
margin: 0 auto;
text-indent: -9999px;
width: <?php echo HEADER_IMAGE_WIDTH; ?>px;
height: <?php echo HEADER_IMAGE_HEIGHT; ?>px;
background-image: url(<?php header_image(); ?>);
}
</style>
<?php endif; }

function admin_header_style() { }

Depending on your CSS, I use .header (for a H1 tag) for the site name. The whole thing:

define('NO_HEADER_TEXT', true );
define('HEADER_IMAGE_WIDTH', 400);
define('HEADER_IMAGE_HEIGHT', 140);

add_custom_image_header( 'header_style', 'admin_header_style' );

function header_style() {
if( '' != get_header_image() ) : ?>
<style type="text/css">
.header-title {
display: block;
margin: 0 auto;
text-indent: -9999px;
width: <?php echo HEADER_IMAGE_WIDTH; ?>px;
height: <?php echo HEADER_IMAGE_HEIGHT; ?>px;
background-image: url(<?php header_image(); ?>);
}
</style>
<?php endif; }
function admin_header_style() { }

Custom header

Now it has cropping function to have the exact logo size that will not distort the layout. Easier for explanation and documentation too.

WordPress theme clubs

Innovation distinguishes between a leader and a follower.
Steve Jobs

Recently my wife hang around a lot on WordPress theme club. Famous club like WooThemes or ThemeLab, and on she found hundred of the clubs with the same products.

WordPress

We did thought about opening a club too, but we haven’t had the passion on processing it yet. So we just drop our saliva all over those clubs.

However, on the search, I did found a lot of the theme is not up to a standard. Having a price tagging on the theme doesn’t make the theme premium; nor having a theme option making the theme premium too.

If having a theme option and price tag on the theme, I think all my theme created on the par of premium already.
CSS
The smallest thing like list or even <code> must be nicely designed and coded. All those thing you can find in XHTML/CSS should be ready to use. Some even missed heading and selling it as premium.

Theme option can be very powerful if use creatively. Simply place theme option for a greeting message just don’t work anymore, not to mention feature entries’ category selection. It has to be more than that.

Looking at WordPress 3.0, I think the team know what users need the most – Flexibility.

WordPress has been ported into quite some application, like e-Commerce, job listing to name a few. Those works without any plugin or third parties application. That is what users looking for nowadays. Premium theme needs some expertise in programming and creativity already.

The biggest feature in WordPress 3.0 that helps all those function must be the custom post type

More to come

Recently I’ve been busy with some jobs around WordPress. I have learn a lot of WordPress functioning and hacking from all the tutorial around, I started to work with a framework :) That, my friend, is the time saver, really!
Theme control panel
More stuff coming out soon. Like the client told me… “Chinese New Year approaching, let’s “together” finish up all the job and get the pay check for new year“. Yeah right, I would say that is… Last minute?

The good thing is, things are slowing down these day. While I was worrying how to even start off, a few advise were given by my friends. 1, doesn’t matter who come or go, the main point is job is continuous. 2, be a labours since our paycheck actually lower :)

Though sometimes I do wanted to take job I like ONLY. But I am not on the stage yet :P I do encounter, a lot of situation like this:

Design to hell
How a web design goes straight to hell by The Oat Meal

So I Change A Theme

I did change my theme tonight again. Thinking that I could get some inspiration after the changes, but no, nothing happen in my mind yet, so I thought, hey, let’s practice typing the keyword “WordPress” :lol: Done this theme within a few hours, and it gets into SimplyWP again, because I didn’t update that blog for sometimes now.
Theme or color changes
Anyway, it’s more like changing a color instead of the whole theme though. I like how the 3 columns is located, so it’s just nice for me. Looking at the blue color making me dull already, so I just change another color scheme only :P

Don’t know why, while she is here, I’m so much lazy to even move my seat or blog. Don’t ask me what I do everyday, I don’t know how to answer yet and no idea how I spend my time this few days. She has taken care of EVERYTHING that I used to take care of when she’s not here :P If you ask me how lazy I am now, I would say, if there’s a disposable diaper, I’ll be wearing it and don’t have to move anymore :lol: