Prem Tiwari - - WordPress, WordPress Snippets
Instructions : Add this code to function.php file in your current theme.
1 2 | <?php the_breadcrumb(); ?> |
Just add below code in your functions.php file.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | <?PHP function the_breadcrumb() { echo '<ul id="crumbs">'; if (!is_home()) { echo '<li><a href="'; echo get_option('home'); echo '">'; echo 'Home'; echo "</a></li>"; if (is_category() || is_single()) { echo '<li>'; the_category(' </li><li> '); if (is_single()) { echo "</li><li>"; the_title(); echo '</li>'; } } elseif (is_page()) { echo '<li>'; echo the_title(); echo '</li>'; } } elseif (is_tag()) {single_tag_title();} elseif (is_day()) {echo"<li>Archive for "; the_time('F jS, Y'); echo'</li>';} elseif (is_month()) {echo"<li>Archive for "; the_time('F, Y'); echo'</li>';} elseif (is_year()) {echo"<li>Archive for "; the_time('Y'); echo'</li>';} elseif (is_author()) {echo"<li>Author Archive"; echo'</li>';} elseif (isset($_GET['paged']) && !empty($_GET['paged'])) {echo "<li>Blog Archives"; echo'</li>';} elseif (is_search()) {echo"<li>Search Results"; echo'</li>';} echo '</ul>'; } ?> |
Prem Tiwari - - WordPress, WordPress Beginners, WordPress Snippets
In this post i will explain how to remove WordPress logo from admin bar. Brand your website as per your logo color combination and want to remove wordpress admin logo from admin panel, then use …
Prem Tiwari - - WordPress Snippets
How to Enable Gzip Compression Enables gzip-compression will speed up your WordPress website drastically and reduces bandwidth usage as well. If you have developed your website in wordpress CMS and looking for enable gzip compression, …
Prem Tiwari - - JavaScript, Web Technologies
In today’s post i will explain to how to validate a form using javasrcipt. This is very easy & simple javasrcipt code to validate text box. JavaScript can be used to validate data in HTML …
Prem Tiwari - - Java Programming, JavaScript, JSP
Hello friend, hope you are doing good. In today tutorial, I will explain about JSP (Java Server Pages). This tutorial is specially designed for JSP (Java Server Pages) beginners or who want to start learning …
Prem Tiwari - - WordPress, WordPress Beginners
In this article i will explain the easy steps to Install WordPress on your wamp or xampp server. WordPress is the most popular CMS (Content Management System) which is used to create a beautiful websites …
Prem Tiwari - - Mysql, PHP Tutorial
In this tutorial, I will explain simple and easy steps that will help you to create a database connection with MySql database with PHP applications. It is very easy to write a script in PHP …
PHP stands for Hypertext Preprocessor and is a server-side language. This means that when a visitor opens the page, the server processes the PHP commands and then sends the results to the visitor’s browser, just …
Prem Tiwari - - WordPress, WordPress Snippets
Today’s I am going to explain simple and easy steps to Remove the URL field from comment form from your WordPress website. You are a website owner or Web blogger and don’t want to display …
Prem Tiwari - - Freebies
Thanks for visit on FreeWebMentor. Welcome to my Tech blog. I have started this blog with a vision to share my knowledge with others over the internet. I am sharing the 70-80% practical tutorials with …