/** Breadcrumb Code * */
function the_breadcrumb()
{
if (!is_front_page())
{
echo '';
}
}
/** Breadcrumb Code * */
function the_breadcrumb()
{
if (!is_front_page())
{
echo '';
echo 'Home';
echo " ";
if (is_single())
{
strip_tags(the_title());
} elseif (is_page())
{
strip_tags(the_title());
} elseif (is_category() && !is_tax())
{
echo strip_tags(single_cat_title());
} elseif (is_archive() && is_tax())
{
$term = get_term_by('slug', get_query_var('term'), get_query_var('taxonomy'));
echo $term->name;
} elseif (is_404())
{
echo '404-Page Not Found';
}
echo '';
}
}
No comments:
Post a Comment