afzalCoder
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
Glad, that it worked for you.
Also, I have put up an article here@fabioamv
It seems error is related to missing ‘;’ or not closing parenthesis properly.
Please double check it@rxc
Hi RXC, I purposefully left the condition in if statement.
If the bold last page is not selected in back-end settings of WordPress SEO plugin, I think your condition will not work.So, the condition to work should be :
if( strpos($output, '<strong class="breadcrumb_last"') > 0 || strpos($output, '<span class="breadcrumb_last"') > 0 )@fabioamv Paste the code in theme’s function.php file
I added the link to last breadcrumb using filter ‘wpseo_breadcrumb_single_link’
add_filter( 'wpseo_breadcrumb_single_link', 'link_to_last_crumb' , 10, 2); function link_to_last_crumb( $output, $crumb){ if( /*last crumb*/ ){ $output = '<a property="v:title" rel="v:url" href="'. $crumb['url']. '" >'; $output.= $crumb['text']; $output.= '</a>'; } return $output; }
Viewing 5 replies - 1 through 5 (of 5 total)