Learning something new everyday

Enriching those around me with this wealth

WordPress: How to Display the Parent Page Title in Your Title Meta Tag

June 24th, 2008

In a project I’m working on at the moment, The page structure is set up using 5 main pages, and then each have their respective sub-pages. For SEO purposes, I wanted my <title> meta tag to display the page title and it’s parent page title if the current page was a child page, i.e.:

<title>Page Title</title> or <title>Parent Page Title — Page Title</title>

So after doing a little searching and combining some code, this is what I came up with:

<title><?php
if($post->post_parent) {
$parent_title = get_the_title($post->post_parent);
echo $parent_title;
?> &#8212; <?php } ?><?php wp_title(''); ?></title>


 

Photo Restoration

June 16th, 2008

There’s photo restoration:

And then there’s photo restoration:

This is a picture of the dining room in a 1890’s house that my husband and I are wanting to buy and restore. I got a little anxious and started early in photoshop. Now if only I could just hit print and see the results in the real life room!


 

25 Reasons for Updating My Website’s Design

May 7th, 2008

Today is my birthday, and I am now 25 years old. I am on the downward spiral into full-fledged adult hood and I am not all that excited. I do love birthdays for the presents and parties, but I haven’t been excited about being another year older since my 18th birthday. I waited all my life to be 18, and then it only lasted a year!

One of my gifts to myself (I already bought the latest Sarah Kelly CD, and did some clothes shopping for myself) is a new design for website. I only started it last night, but hopefully I’ll be able to work on it steadily over the next few days. This design will be the best SEO and the best accessibility that I’ve ever done. It will show a more high class style, and not have use the boxed in feeling I have now.

My husband told me back in November that I needed to keep my design for at least a year, and that was my plan, but in just 6 months, I have learned so much more about design and SEO that I just feel like my site should stay up to date with my own capabilities. So my new design will come out of conformity and stand on it’s own two feet as a creative, eye catching design, and hopefully give me better search engine rankings.

Here is a screenshot of the homepage design so far:

New Design


 

New WordPress Theme For Sale - Resilience

April 27th, 2008

>>>> Unique WordPress theme, lots of features, fresh

Live Preview

Theme name: Resilience

Widget Ready Sidebar: Yes

Rights: Completely goes to buyer

Unique/Original Design: Yes

Other Features:

  • Special frontpage layout with featured latest post, recent posts, and recent comments
  • Special post title and meta data on single pages
  • Fresh “web 2.0″ design
  • Unique previous and next post links
  • Horizontal page nav with child pages listed in sidebar of parent pages only


 

Multiple Widget “Sidebars” in WordPress Themes

April 27th, 2008

Most WordPress users love the ability to customize their front end functionality with easy to use widgets. All you do is drag and drop, make a few minor customizations if you want to, and bingo bango, customization in a flash! But something that recently stumped me was.. how can I make more than one sidebar in the theme and keep them all widgetized so that the client can then customize everything to his liking and any future changes he might want to make. So I started searching around and I found very little information about it. I figured I wasn’t the only developer in need of learning how, so here I am, and here is the best I can make of it. If anyone can add to it, just let me know.

In my project, I wanted widget capability in my sidebar, and in my super footer. I already had my functions.php code ready for one sidebar. I found one site that gave me peices of what I needed to know, but didn’t explain it well enough for me. So I figured it out through good ol’ trial and error.

Here is what my new functions.php looks like:

<?php
if ( function_exists('register_sidebar') ){

register_sidebar(array(
'name' => 'sidebar',
'before_widget' => '<li id="%1$s" class="widget %2$s">',
'after_widget' => '</li>',
'before_title' => '<h2 class="widgettitle">',
'after_title' => '</h2>',));

register_sidebar(array(
'name' => 'footer',
'before_widget' => '<li id="%1$s" class="widget %2$s">',
'after_widget' => '</li>',
'before_title' => '<h2 class="widgettitle">',
'after_title' => '</h2>',));

} ?>

As you can see, it registers two sidebars, one called “sidebar”, and one called “footer”. You can repeat these sections for as many sidebars you need and name them whatever you want to name them. But how do you tell which sidebar to be which in the template files?
Here is what the default widget code looks like:

<?php 	/* Widgetized sidebar, if you have the plugin installed. */
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>

Here is what it looks like with the name in it:

<?php 	/* Widgetized sidebar, if you have the plugin installed. */
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar') ) : ?>

Of course, you should include your <?php endif; ?>where you need it to be.

Another quick note about custom sidebars

Sometimes there are elements that you want to stay in your sidebar, and not be canceled out by widgets. Simply place your widget code above or below these concrete elements, and don’t wrap it with the <?php endif; ?>.


 

Free WordPress Theme Release - xSimplify

April 9th, 2008

This is a brand new thing for me. I’ve never released a free theme, so I expect that if it does gain a lot of exposure, this ride could possibly get bumpy.

This theme isn’t a very flexible one, but I still feel like it is interesting enough to add to your collection. It is called xSimplify because it does exemplify beautiful simplicity.

The sidebar is widgetized and it works in WordPress versions 2.0.*+ including the latest 2.5. It has a stylized rss section and search area in the sidebar. The pages are listed across the top as tabs. The background extends for a maximum of 1600 pixel wide resolution and features a nice vector art tree at the bottom that gives you a nice surprise when you scroll to the bottom of a long page. There is special styling for an unordered list and a blockquote. The comments are also styled with alternating shading.

xSimplify Thumbnails

Live Preview | Download

Creative Commons License
xSimplify by Tammy Hart is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.


 

New WordPress 2.5 and New Thoughts

April 8th, 2008

WordPress has finally made a complete overhaul of their system, and it looks great. I’ve upgraded my main site and the testing area to WP 2.5 with minimal problems.

There aren’t any noticeable changes to you on the outside, but here on the inside of the new Admin Dashboard, it’s a whole new world. Everything is so much sleeker and easier to use. The new media functionality is awesome. I did run into a snag there that was fixed with a little help from the support forums.

I’ve been thinking about making some subtle changes to my site design to just spruce it up a bit, but I can’t seem to get settled on it. I have an irritating need for frequent change in my life, but my husband has forbid me to overhaul my design until it’s at least a year old. :) His “advice” is good though, as I need to establish recognizability. So instead, I’ll probably overhaul MyThreeDaisies, and I’m currently working on overhauling Halo (preview), which is just step one in overhauling Christway which will be taking on my present design from Halo.

This is all being fit between my normal work, of course. The latest trophy added to my portfolio page is the overhaul I just finished for Comag Marketing Group. A lot of work went into making it function just like we wanted it to, but the result was perfect success, as that is the only thing I am satisfied with. I’ll go ahead and take this opportunity to make mention of my new friend Jason Craft from Deft Development for helping me amend a plugin to give it a bit of extra functionality crucial to the success of the site.

We’re four months into 2008, and I still feel like I’m kicking it off!


 

Photoshop is a verb

March 24th, 2008

I use Photoshop nearly every single day of my life with the work I do. But rarely do I ever use it for what it was originally created for: editing photos. But recently I’ve been playing around with it a bit, and it’s really a lot of fun to create and collage things together. Here are some pictures I took today.

Before:

portrait-before.jpg

After:

portrait-after.jpg

Before:
window.jpg

After:

window-after.jpg


 

Same Tune, Different Lyrics

March 21st, 2008

That is what I think about free templates. Unless you are going to take that free template and then change it drastically yourself, then using a template that is distributed freely to hundreds and thousands of people, and then using it on your website/blog is like singing “Amazing Grace” to the tune of “Gilligan’s Island”. People will notice that the words are different, but the focus will be on the hilarity of mimicking a popular tune.

So here is my latest idea, and I’m still rolling it around in my head, but I wanted to write some of it down:

Everyone knows that non-exclusive WordPress themes are cheaper than custom made ones. The drawback is, everyone has it, and everyone recognizes it, and where it comes from. (I’m still amazed at how many blogs I run across that use Kubrick’s default theme.) So.. what if there was a site that developed “limited edition” themes. Like.. this theme only goes to the first 100 buyers, and it costs $. Then more elite themes that only go to the first 20 buyers, and it costs $$. Then every once in awhile, you slip in an exclusive theme that costs $$$. It is sold only once, and those only come, say.. once a month. It could even go up for auction.

The first challenge would be to draw in an audience. There would need to be an excitement about the cool new themes, and if you’re going to be one of the lucky few that gets to own it. This could be compared to baseball card collections or Woot. I think to kick start it, there should be plenty of basic, free themes. Then draw them in with more intricate designs. To make that part even more interesting, you could retire themes after a certain period of time.

Breaking off on that thought, what if instead of having individual pricing, the users simply subscribe. And as members, they can download certain themes, upgraded users get access to the upgraded themes.  These themes are only available to a certain amount of downloads for a certain amount of time. Then, you could offer free trial memberships.

It would take some good planning, marketing, and programming, but I think it could gain popularity.