How to Fix Breadcrumbs issue in Dooplay WordPress Theme

Trainee Asked on October 11, 2019 in Wordpress.
Add Comment
1 Answer(s)

In the current version of Dooplay go to : /wp-content/themes/dooplay/inc

Open archive : “doo_init.php”

search within the “# Breadcrumb” file
It is replaced by this:

# Breadcrumb
function doo_breadcrumb($post_id = false, $post_type = false, $post_type_name = false, $class = false) {
if($post_id AND $post_type AND $post_type_name){
$out = ‘<div class=”dt-breadcrumb ‘.$class.'”><ol itemscope itemtype=”http://schema.org/BreadcrumbList“>’;
$out .= ‘<li itemprop=”itemListElement” itemscope itemtype=”http://schema.org/ListItem“>’;
$out .= ‘<a itemprop=”item” href=”‘.home_url(). ‘”><span itemprop=”name”>’. __d(‘Home’) .'</span></a>’;
$out .= ‘<span class=”icon-angle-right” itemprop=”position” content=”1″></span></li>’;
$out .= ‘<li itemprop=”itemListElement” itemscope itemtype=”http://schema.org/ListItem“>’;
$out .= ‘<a itemprop=”item” href=”‘.get_post_type_archive_link($post_type).'”><span itemprop=”name”>’.$post_type_name.'</span></a>’;
$out .= ‘<span class=”icon-angle-right” itemprop=”position” content=”2″></span></li>’;
$out .= ‘<li itemprop=”itemListElement” itemscope itemtype=”http://schema.org/ListItem“>’;
$out .= ‘<a itemprop=”item” href=”‘.get_the_permalink($post_id).'”><span itemprop=”name”>’.get_the_title($post_id).'</span></a>’;
$out .= ‘<span itemprop=”position” content=”3″></span></li>’;
$out .= ‘</ol></div>’;
echo $out;
}
}

 

Reviewer Answered on October 11, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.