MASIGNCLEAN101

Kolom itemListElement tidak ada

iklan banner

 

breadcrumb



cara mengatasi Kolom "itemListElement" tidak ada


Cari kode Breadcrumb yaitu dari <b:includable id='breadcrumb'> lalu ganti kode dibawahnya sampai dengan penutup ... </b:includable> dengan kode dibawah ini:



<b:if cond='data:view.isPost'>

    <b:loop values='data:posts' var='post'>

        <div class='breadcrumbs' itemscope='itemscope' itemtype='https://schema.org/BreadcrumbList'>

            <span itemprop='itemListElement' itemscope='itemscope' itemtype='https://schema.org/ListItem'>

            <a expr:href='data:blog.homepageUrl' itemprop='item' title='Home'>

            <meta content='1' itemprop='position'/>

            <span itemprop='name'><b:switch var='data:blog.locale'><b:case value='id'/>Beranda<b:default/>Home</b:switch></span></a>

            </span>

            <b:if cond='data:post.labels'>

            <b:loop index='nomor' values='data:post.labels' var='label'> &amp;nbsp;&#8250;&amp;nbsp;

              <span itemprop='itemListElement' itemscope='itemscope' itemtype='https://schema.org/ListItem'>

                <meta expr:content='data:nomor+2' itemprop='position'/>

                <a expr:href='data:label.url + &quot;?&amp;max-results=8&quot;' expr:title='data:label.name' itemprop='item' rel='nofollow'>

                  <span itemprop='name'><data:label.name/></span>

                </a>

              </span>

            </b:loop>

            <b:else/>

            &amp;nbsp;&#8250;&amp;nbsp; <span itemprop='name'><data:blog.pageName/></span>

            </b:if>

        </div>

    </b:loop>

<b:elseif cond='data:view.isPage'/>

    <div class='breadcrumbs' itemscope='itemscope' itemtype='https://schema.org/BreadcrumbList'>

        <span itemprop='itemListElement' itemscope='itemscope' itemtype='https://schema.org/ListItem'>

        <a expr:href='data:blog.homepageUrl' itemprop='item' title='Home'>

        <meta content='1' itemprop='position'/>

        <span itemprop='name'><b:switch var='data:blog.locale'><b:case value='id'/>Beranda<b:default/>Home</b:switch></span></a>

        </span> &amp;nbsp;&#8250;&amp;nbsp;

        <span itemprop='itemListElement' itemscope='itemscope' itemtype='https://schema.org/ListItem'>

        <meta expr:content='data:num+2' itemprop='position'/>

        <a expr:href='data:blog.url' expr:title='data:post.url' itemprop='item'>

          <span itemprop='name'><data:blog.pageName/></span>

        </a>

        </span>

    </div>

</b:if>

</b:includable>


kemudian save template,kemudian lakukan validasi

Share This :
kovic