You are here: WTF » Documentation » Extended Functionality Methods »

Breadcrumbs

Breadcrumbs

WTF provides you with a simple way to add breadcrumbs to your Wordpress site. You can place the breadcrumbs in the following sections: category, archive, search, 404, single posts and pages. All you have to do is add the following code:

<?php if(function_exists('wtf_breadcrumbs')) wtf_breadcrumbs(); ?>

This will output an un-ordered list of breadcrumbs on your page.

CSS

Most breadcrumbs are displayed in a horizontal fashion rather than a list of items. To make sure your breadcrumbs are displayed in a horizontal fashion add the following CSS to your style.css file:

ul.breadcrumbs {
	list-style: none;
	padding: 0;
	margin: 0;
}
ul.breadcrumbs li {
	float: left;
	margin: 0 5px 0 0;
}