category: wordpress


The Header

Posted by Shane

So with the new found technologies of CSS3 gradients, etc. and the re-launch of this site, I been working on converting my header that was originally flash to CSS3/Javascript/jQuery. This way the header (if you remember) that is based on your location (if you shared that information) changes to the right “time of day” and will for every second change (as time does) based on the actual timer periods of your location. read more ‘The Header


Site Officially “1.0.0”

Posted by Shane

It only took a day or so to mark my theme tagged version 1.0.0. I know this might seem odd since I did have old designs before, but I didn’t want any of the old design to be part of the Git repo. Now to work on my header where (if you remember) it was animated (review posts here). This time the header will not be in flash and I will use CSS3 Animation and the other various tools to get the same effects.

Not part of this version:

  • Comments
  • Article’s Section
  • Contact and About Section cleared out — Will be redone.

Due to a technical problem in a plugin that controls registrations, I have disabled registration globally until it can be fixed. Not many of you registry anyways, but it’s good to announce it that it is happening.


WordPress & HTML5

Posted by Shane

I am hoping a lot of you out there that read my blog are design and wordpress users because changing your site to conform to HTML5 will not be that hard. I have changed 3 lines.

Index: E:/My Site/Code/trunk/header.php
--- E:/My Site/Code/trunk/header.php    (revision 252)
+++ E:/My Site/Code/trunk/header.php    (working copy)
@@ -1,6 +1,6 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
-<html xmlns="" <?php language_attributes(); ?>>
-<head profile="">
+<!DOCTYPE html>
+<html <?php language_attributes(); ?>>
 <title><?php wp_title(' | ', true, 'right'); ?><?php bloginfo('name'); ?></title>

 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
@@ -59,7 +59,7 @@
 <div id="content">
 <div id="logo">
-        <a id="site-link" href="/" title="<?php bloginfo('name'); ?> | <?php bloginfo('description'); ?>" />
+        <a id="site-link" href="/" title="<?php bloginfo('name'); ?> | <?php bloginfo('description'); ?>"></a>
 <div id="header-navigation">
 <ul id="main-navigation">

After that it was pretty much valid for HTML5 through out the entire site. Pretty sweet huh? Oh.. site validates now with HTML5. :) You should still run your site through the vaildator to make sure that nothing else is messed up, but all my pages complied the first time and that was from XHTML 1.0 to HTML5.


When you are writing a plugin that uses Ajax in the front end, you must use:

add_action( 'wp_ajax_nopriv_<ACTION NAME>', <YOUR FUNCTION> );

…as doing…

add_action( 'wp_ajax_<ACTION NAME>', <YOUR FUNCTION> );

… is only for logged in users. So if you have a plugin that operates no matter which way users interface with the plugin, you must provide both action calls to make sure it all gets processed. Helpful tip. :)

Will be back shortly…