Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #6462

    Hi,

    I’ve edited the class-breadcrumb.php, because I wanted the blog name deleted from the breadcrumbs – works fine.

    But:

    (1)

    how to change the “/” into »

    (2)

    the words “You are here: ” have no effect, the frontend doesn’t show them.

    The part of code concerning this in the class-breadcrumb.php is at the moment this:

    function avia_breadcrumb($options = ""){

    $this->options = array( //change this array if you want another output scheme

    'before' => '<span class="arrow"> ',

    'after' => ' </span>',

    'delimiter' => '»'

    );

    if(is_array($options))

    {

    $this->options = array_merge($this->options, $options);

    }

    $markup = $this->options.$this->options.$this->options;

    global $post;

    echo '<p class="breadcrumb"><span class="breadcrumb_info">'.__('Sie sind hier: ','avia_framework').'</span>';

    It shows just

    / Templates / Page: Dual Sidebar

    instead of

    Templates » Page: Dual Sidebar

    How can I change this? My PHP knowledge is very low :-(

    Thanks a lot.

    #54258

    Hey,

    in your breadcrumb file find

    $markup = $this->options['before'].$this->options['delimiter'].$this->options['after'];

    replace it by

    $markup = '&raquo';

    Now to display the “Sie sind hier:” you can find

    .breadcrumb_info {
    display: none;
    }

    in your style.css and replace the entire thing by the following

    .breadcrumb_info {
    display: block;
    float: left;
    }

    #54259

    You are great, thank you very much!!

    #54260

    Glad that Chris could help you :)

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Breadcrumbs: how to add an arrow and "you are here" is not showing’ is closed to new replies.