Please or Register to create posts and topics.

SEO for Breadcrumbs – Microdata

Page 1 of 2Next

Hello Thomas

I propose to improve SEO. Link to google

In file forum.php find: Link

in styles:

#af-wrapper .vocabulary {
    float: left;
    font-size: 11px;
    padding: 0;
    margin: 0; /* comp */
    color: #666;
}

Very good for search engine optimization 🙂

Hello Yworld,

do you have some further ressources/links for this? I cant find the part in your linked website where the HTML-changes you made are described. I want to have a closer look for a better understanding inside it first. 🙂

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

 

<div id="top-container"><div id="breadcrumbs"><div class="vocabulary" itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><span class="dashicons-before dashicons-admin-home"></span><a href="https://asgarosforum.ru/forum/" itemprop="url"><span itemprop="title">Форум</span></a></div><div class="vocabulary" itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><span class="dashicons-before dashicons-arrow-right-alt2 separator"></span><a href="https://asgarosforum.ru/forum/?view=forum&id=2" itemprop="url"><span itemprop="title">Настройки Asgaros Forum</span></a></div><div class="vocabulary" itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><span class="dashicons-before dashicons-arrow-right-alt2 separator"></span><a href="https://asgarosforum.ru/forum/?view=thread&id=70" title="Добавляем микроразметку хлебных крошек" itemprop="url"><span itemprop="title">Добавляем микроразметку хлебных к &hellip;</span></a></div></div>

Checking Google https://search.google.com/structured-data/testing-tool

We get:

  1. Just link
  2. link title, SEO for Breadcrumbs – Microdata
Uploaded files:
  • 5ae568ccca51433b84f291a3d72a05a6.png
  • 92abff884891479082c3dc4ce42d301c.png
  • Screenshot_1.jpg

I made as a in the plugin Breadcrumb NavXT https://wordpress.org/plugins/breadcrumb-navxt/

Within an hour, I’ll write

Just as in the popular plugin Breadcrumb NavXT 🙂

function breadcrumbs() {
        echo '<div id="top-container">';

        echo '<div id="breadcrumbs" typeof="BreadcrumbList" vocab="https://schema.org/">';
        echo '<span class="dashicons-before dashicons-admin-home"></span>';
    echo '<span property="itemListElement" typeof="ListItem">';
        echo '<a property="item" typeof="WebPage" href="'.$this->getLink('home').'"><span property="name">'.__('Forum', 'asgaros-forum').'</span></a><meta property="position" content="1"></span>';

        $trail = '';

        if ($this->parent_forum && $this->parent_forum > 0) {
            echo '<span class="dashicons-before dashicons-arrow-right-alt2 separator"></span>';
      echo '<span property="itemListElement" typeof="ListItem">';
            echo '<a property="item" typeof="WebPage" href="'.$this->getLink('forum', $this->parent_forum).'"><span property="name">'.esc_html(stripslashes($this->get_name($this->parent_forum, $this->tables->forums))).'</span></a><meta property="position" content="2"></span>';
        }

        if ($this->current_forum) {
            echo '<span class="dashicons-before dashicons-arrow-right-alt2 separator"></span>';
      echo '<span property="itemListElement" typeof="ListItem">';
            echo '<a property="item" typeof="WebPage" href="'.$this->getLink('forum', $this->current_forum).'"><span property="name">'.esc_html(stripslashes($this->get_name($this->current_forum, $this->tables->forums))).'</span></a><meta property="position" content="2"></span>';
        }

        if ($this->current_topic) {
            $name = stripslashes($this->get_name($this->current_topic, $this->tables->topics));
            echo '<span class="dashicons-before dashicons-arrow-right-alt2 separator"></span>';
      echo '<span property="itemListElement" typeof="ListItem">';
            echo '<a property="item" typeof="WebPage" href="'.$this->getLink('topic', $this->current_topic).'" title="'.esc_html($name).'"><span property="name">'.esc_html($this->cut_string($name)).'</span></a><meta property="position" content="3"></span>';
      
        }

check https://search.google.com/structured-data/testing-tool:

We are looking in a page code(https://asgarosforum.ru/forum/?view=thread&id=70) breadcrumbs:

<div id="af-wrapper"><div id="top-container"><div id="breadcrumbs" typeof="BreadcrumbList" vocab="https://schema.org/"><span class="dashicons-before dashicons-admin-home"></span><span property="itemListElement" typeof="ListItem"><a property="item" typeof="WebPage" href="https://asgarosforum.ru/forum/"><span property="name">Форум</span></a><meta property="position" content="1"></span><span class="dashicons-before dashicons-arrow-right-alt2 separator"></span><span property="itemListElement" typeof="ListItem"><a property="item" typeof="WebPage" href="https://asgarosforum.ru/forum/?view=forum&id=2"><span property="name">Настройки Asgaros Forum</span></a><meta property="position" content="2"></span><span class="dashicons-before dashicons-arrow-right-alt2 separator"></span><span property="itemListElement" typeof="ListItem"><a property="item" typeof="WebPage" href="https://asgarosforum.ru/forum/?view=thread&id=70" title="Добавляем микроразметку хлебных крошек"><span property="name">Добавляем микроразметку хлебных к &hellip;</span></a><meta property="position" content="3"></span></div>

result:

Now everything is in order 🙂

We improve SEO

Uploaded files:
  • c60c1c2fb0fd4b3e8a5173dcff26d335.png

Thank you for the information, Yworld. I will check it out and think about to implement it. 🙂

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Excellent, useful thing for SEO 🙂

I added, and check…

Just for your information: I will ship this with the next bigger v1.4 update. It is possible that there will be some bugfix release before so dont wonder when it is not included there. 🙂

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Excellent!

Hello Yworld,

I just added those changes to the development-version. Could you please have a look at it because the testing-tool doesnt show me the URLs.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!
Page 1 of 2Next