How can create your custom “Breadcrumbs” for your wordpress site?


You can create our custom breadcrumbs without any plugin by using this code. For use this code just copy and paste into your themes function.php file
// Create custom Breadcrumbs by raghunath.0087@gmail.com
function the_crumbs() {
    if (!is_front_page()) {
        echo '<a href="';
        echo get_option('home');
        echo '">';
        echo 'Home'; // Home Link Text, change this to meet your needs
        echo "</a> / ";
        if (is_category() || is_single()) {
            the_category(', ','&title_li=');
            if (is_single()) {
                echo " / ";
                the_title();
            }
        } elseif (is_page()) {
            echo the_title();
}}}

Advertisements

Sr. Software Engineer

Posted in Wordpress

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: