Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Breadcrumbs (and multi-level navigation and more)
#3
polyfragmented Wrote:I have a question about the breadcrumbs: on my start page, "Start » Start" is shown which is undesirable for me. How can I circumevent this? I'm no programmer, but willing and able to edit the plugin. The start page is a special case it seems.

In your template you can add the slug name of your current page as class in a "content"-div like follows:

Code:
<div id="content" class="<?php echo return_page_slug(); ?>">
    <div class="breadcrumbs">
      <a href="<?php echo find_url('index',null); ?>">home</a>
      <?php get_i18n_breadcrumbs(return_page_slug()); ?>
    </div>
    <h1 id="pagetitle"><?php get_page_title(); ?></h1>
    <?php get_page_content(); ?>
  </div>

Then you can add a CSS-rule in your css file that hides the breadcrumbs on the index page:

Code:
#content.index div.breadcrumbs {
  display: none;
}

You can use the same approach to e.g. make the font on your legal info ("Impressum") page smaller, etc.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply


Messages In This Thread
Breadcrumbs (and multi-level navigation and more) - by mvlcek - 2011-03-10, 21:51:59



Users browsing this thread: 1 Guest(s)