The people from WooThemes assembles very nice themes for WordPress and other Content Management Systems. They also create this backend framework that helps non-developers get ahead of the SEO game. This framework let’s users change basic and some advance settings. The WooFramework does not provide a method on how to modify some attributes for the image and link tags. Since I needed to add “alt” and “rel” attributes to my HTML code, to enable search engines to get information from my links and images, I came up with a list of steps and snippets of code for other people to follow or add to them.
Below you will find a few steps on how to add alt attributes, and by similar steps (not shown here) rel attributes to both anchor and img tags on a WooTheme inside WordPress. If you are using WordPress by itself, then you will need something a little more elaborated, but in essence the same thing. Basically add a custom option to the post, and retrieve that option at render time. The WooFramework makes adding options relatively easy, since they have done most of the heavy lifting for you. Below you will find the two files that you have to modify and how you have to modify them.
$woo_metaboxes['mini_alt_tag'] = array (
"name" => "mini_alt_tag",
"std" => "",
"label" => "Mini-features Alt Tag",
"type" => "text",
"desc" => "Add an ALT Tag" );
Under the index.php file look for mini-features and inside the img tag add the following:
alt="<?php echo get_post_meta($post->ID, 'mini_alt_tag', $single = true); ?>"
Please drop me a line below if you need more information.