How to add Breadcrumbs without plugins on WordPress

Most of the blog with SEO considerations using breadcrumbs. In this article I am going to show you how to do proper, full breadcrumbs in including nested categories and nested pages. Breadcrumbs are a pretty standard design pattern and can be very useful in a lot of website situations. For WordPress users typically use plugins. But for those who want to add facilities in bredacrumbs WordPress-based blog without using plugins, try my way below.

You can just include this function in your theme’s “functions.php” file.

function get_wp_breadcrumbs() {
	if (!is_home()) {
		echo ('You are here: ');
		echo '<a href="';
		echo get_option('home');
		echo '">';
		echo 'Home';
		echo "</a> » ";
		if (is_category() || is_single()) {
			the_category(' » ',multiple);
			if (is_single()) {
				echo " » ";
				the_title();
			}
		} elseif (is_page()) {
			echo the_title();
		}

	}
	else {
	echo ('You are here: ');
	echo '<a href="';
	echo get_option('home');
	echo '">';
	echo 'Home';
	echo "</a> » ";
	}
}

And then add the following code in the “header.php” file.

<?php get_wp_breadcrumbs(); ?>

So there you have it. Fully customizable, valid breadcrumbs in WordPress. Please let me know what you think.

Install Swiftweasel For Optimized Firefox

Swiftweasel is a build of Mozilla Firefox source code, which uses non-trademarked graphics and logos. It is optimized for several architectures, and is available for the Linux platform only (original article). The main difference when compared to Firefox is that Swiftweasel is free and open source software dan light, Firefox are full blown huge heavy monster for my Ubuntu BOX.

To install, first download the tar.gz file for your architecture at http://sourceforge.net/projects/swiftweasel/files/, saving it in your home directory. Then run the following commands in the terminal:

sudo tar -xvf swiftweasel-*ubuntu.tar.gz -C /opt
rm swiftweasel-*ubuntu.tar.gz
sudo ln -s /opt/swiftweasel/swiftweasel /usr/local/bin/firefox

Then just click the firefox launcher and it will launch Swiftweasel instead. To uninstall and revert all changes, run the following command:

sudo rm /usr/local/bin/firefox && sudo rm -r /opt/swiftweasel

Quote:
Note: Swiftweasel profile is saved under ~/.sw*/swiftweasel

Howto Fix login delay after upgrade to Lucid Lynx

My Linux Box is Ubuntu LTS 8.04.4 minimal install with LXDE/Openbox as Window Manager. But after upgrading to Ubuntu Lucid Lynx, I noticed that it took an extra 15 – 20 seconds for it to finish logging me in after I entered my password. This was particularly noticeable to me because I use LXDE/Openbox as my window manager, and normally starts up in less than one second on my hardware.

If you’re experiencing this problem, there’s a very easy fix:

sudo mv /usr/bin/xsplash /usr/bin/xsplash_hidden

This just hides xsplash under a different name so that the login manager can’t find it and run it. I found that it did not cause any problem to have xsplash unavailable. However, the reason I’ve suggested renaming it rather than deleting it is so that if it does cause a problem, you can just rename it back.

For explanation, it turns out that xsplash has a 15-second delay hardcoded into it before the brown splash screen goes away. If you’re using Gnome, apparently Gnome has a mechanism to let xsplash know when it’s done loading, so the brown xsplash screen will go away in less than 15 seconds. But if you’re using a window manager other than Gnome that doesn’t support this mechanism, the brown screen will stay there for the full 15 seconds, while you wait for it.