• Hello!

    The last element puts the link to the home page. This is mistake. And there shouldn’t be a link!
    remove the link to the last element in the plugin !!

    index / category / post
    themes-wordpress.ru/5_komponentov_prodayushhego_lendinga/
    “post” has link the home page

    index / category
    themes-wordpress.ru/services/
    “category” has link the home page

    index / page
    themes-wordpress.ru/checkout/
    “page” has link the home page

    /wp-admin/admin.php?page=seo_breadcrumbs
    there are no settings to disable this last link!

Viewing 1 replies (of 1 total)
  • Thread Starter v0van

    (@v0van)

    I fixed this issue like this
    /wp-content/plugins/seo-breadcrumbs/functions.php

    if ( ! function_exists( 'crumb_builder' ) ) {
    
    // function for building list items.
      function crumb_builder ( $href, $title, $name, $tag, $pos )
     {
      return "\n" . '<li itemprop="itemListElement" class="breadcrumbs-item" itemscope itemtype="https://schema.org/ListItem">
       '. (strlen($href)>0 ? '<a itemprop="item" href="' .$href.'" title="'.$title.'" class="crumb">
    ' : '') . '      <'.$tag.' itemprop="name">'.$name.'</'.$tag.'>
             <meta itemprop="position" content="'.$pos.'" />
     '. (strlen($href)>0 ? '  </a>' : '') .'
     </li>'."\n";
      }
      
    }
    	// Getting current page url for last breadcrumb.
    	$current_url = ""; // $current_url = home_url( add_query_arg( array(), $wp->request ) );

    author add my corrections to the plugin!

    • This reply was modified 4 years, 2 months ago by v0van.
Viewing 1 replies (of 1 total)
  • The topic ‘The last element puts the link to the home page. Remove it!’ is closed to new replies.