Wednesday, 12 October 2011

How to put the post title at the end of the breadcrumbs in Drupal

If you did just
<?php print $breadcrumb . $title; ?>
You will realise that your page title appears in a new line like so:
Home » Guys »
Shirts

To solve the problem, just add this to your css.
.breadcrumb 
{
   display: inline;
   margin-bottom: .5em;
   font-size:80%;
   font-weight:normal;
   color:#393939;
}
And replace
<?php print $breadcrumb . $title; ?>
with this
<?php
   print $breadcrumb."<span class=\"breadcrumb\"> &raquo; ".$title."</span>";
?>

0 comments:

LinkWithin

Related Posts Plugin for WordPress, Blogger...