Salut liebe Community,
ich würde gerne auf meiner Seite, das Breadcrump entfernen bzw. ausblenden lassen.
In der custome.functions.php fand ich folgenden Code:
(folgendes Template wird benutzt: [COLOR=#ff8c00]http://devsolution.info/themes/?theme=infinite-wp[/COLOR])
/////////////////////////// BREADCRUMBS //////////////////////////////////
if /* (!function_exists('the_breadcrumb')):
function the_breadcrumb($class = null, $id = null) */ {
global $post;
echo '<ul id="'.$id.'" class="'.$class.'">';
if (!is_home()) {
echo '<li><a href="';
echo home_url();
echo '">';
echo 'Home';
echo '</a></li>';
if (is_category() || is_single()) {
if(blog_id()):
echo '<li><a href="'.get_permalink(blog_id()->ID).'">'.blog_id()->post_title.'</a></li>';
endif;
if(is_category()):
echo '<li><a href="">';
the_category(' </a></li><li> ');
endif;
if (is_single()) {
echo '</li><li><a href="">';
the_title();
echo '</a></li>';
}
} elseif (is_page()) {
if($post->post_parent){
$anc = get_post_ancestors( $post->ID );
foreach ( $anc as $ancestor ) {
$output = '<li><a href="'.get_permalink($ancestor).'" title="'.get_the_title($ancestor).'">'.get_the_title($ancestor).'</a></li>';
}
echo $output;
echo '<li><a href="">'. get_the_title( $post->ID) .'</a></li>';
} else {
echo '<li><a href="">';
echo the_title();
echo '</a></li>';
}
}
}
elseif (is_tag()) {single_tag_title();}
elseif (is_day()) {echo"<li><a href='#'>Archive for "; the_time('F jS, Y'); echo'</a></li>';}
elseif (is_month()) {echo"<li><a href='#'>Archive for "; the_time('F, Y'); echo'</a></li>';}
elseif (is_year()) {echo"<li><a href='#'>Archive for "; the_time('Y'); echo'</a></li>';}
elseif (is_author()) {echo"<li><a href='#'>Author Archive"; echo'</a></li>';}
elseif (isset($_GET['paged']) && !empty($_GET['paged'])) {echo "<li><a href='#'>Blog Archives"; echo'</a></li>';}
elseif (is_search()) {echo"<li><a href='#'>Search Results"; echo'</a></li>';}
echo '</ul>';
}
endif;
Für mich leider viel zu viel Code, so dass ich den Überblick verloren habe. Kann mir jmd. genau erklären wie ich diesen abschalten kann?
Vielen lieben Dank.
LG,
Pantheon