Recently, a reader of clubosc, “Snowbird” brought up an interesting diversion based on one of my previous posts about changing the breadcrumb in osCommerce.
I did not know that Google sometimes shows breadcrumbs as part of the Search Engine Results Page (SERP), like so;
The breadcrumb part is the bottom line (in green). Note that the example is a result from Türkiye Google (Turkish Google), but can also be seen on the main google site as well as UK and many other Googles.
How to recreate this in osCommerce?
After some fiddling with code, I found that the simplest way is to use Googles examples as detailed here, the RDFa format is the easiest and involves changes to only 1 file!
Open up /includes/classes/breadcrumb.php and change the trail function as shown below;
The changes really don’t do anything to your design, they only give Google the code it needs to determine that these links are to be used to produce a breadcrumb within your search listings.
Easy as 123. Of course, I give no guarantee that this change will do any good to your search results, please let me know if any of you change your breadcrumb and if Google then picks it up and displays as a breaded list of links in your SERP. Thanks.