首頁 繪圖設計 工作閒聊 比賽活動 美術討論 標籤 圖片
PHPBB 3.3: Missing Field "ID" NAV-breadcrumbs Prosilver @ Google Search Console
PHPBB 3.3: Missing Field "ID" NAV-breadcrumbs Prosilver @ Google Search Console




Type(Type) 2020/1/12 23:23

PHPBB 3.3 Prosilver Remove "itemscope" nav-breadcrumbs to fix Google Search Console
"Missing Field ID" issue



I update phpbb 3.2 to PHPBB 3.3.0
and the default prosilver "navbar_header.html" breadcrumbs start to make Google Search Console complaining errors about "Missing Field ID", and the Google's help page won't help you as usual. 😂

Try to remove 'itemscope' for home & root-forum
and 'itemscope itemtype="item"' for forum.

This is try-and-error, looks working good, 👌
see below code diff example. 👇


代碼:


diff --git a/styles/prosilver/template/navbar_header.html b/styles/prosilver/template/navbar_header.html
index 2b9f753..7f8700f 100644
--- a/styles/prosilver/template/navbar_header.html
+++ b/styles/prosilver/template/navbar_header.html
@@ -185,16 +185,17 @@
                <!-- EVENT overall_header_breadcrumbs_before -->
                <li class="breadcrumbs" itemscope itemtype="http://schema.org/BreadcrumbList">
                        <!-- IF U_SITE_HOME -->
-                               <span class="crumb" {$MICRODATA}><a href="{U_SITE_HOME}" itemtype="https://schema.org/Thing" itemscope itemprop="item" data-navbar-reference="home"><i class="icon fa-home fa-fw" aria-hidden="true"></i><span itemprop="name">{L_SITE_HOME}</span></a><meta itemprop="position" content="{{ navlink_position }}{% set navlink_position = navlink_position + 1 %}" /></span>
+                               <span class="crumb" {$MICRODATA}><a href="{U_SITE_HOME}" itemtype="https://schema.org/Thing" itemprop="item" data-navbar-reference="home"><i class="icon fa-home fa-fw" aria-hidden="true"></i><span itemprop="name">{L_SITE_HOME}</span></a><meta itemprop="position" content="{{ navlink_position }}{% set navlink_position = navlink_position + 1 %}" /></span>
                        <!-- ENDIF -->
                        <!-- EVENT overall_header_breadcrumb_prepend -->
-                               <span class="crumb" {$MICRODATA}><a href="{U_INDEX}" itemtype="https://schema.org/Thing" itemscope itemprop="item" accesskey="h" data-navbar-reference="index"><!-- IF not U_SITE_HOME --><i class="icon fa-home fa-fw"></i><!-- ENDIF --><span itemprop="name">{L_INDEX}</span></a><meta itemprop="position" content="{{ navlink_position }}{% set navlink_position = navlink_position + 1 %}" /></span>
+                               <span class="crumb" {$MICRODATA}><a href="{U_INDEX}" itemtype="https://schema.org/Thing" itemprop="item" accesskey="h" data-navbar-reference="index"><!-- IF not U_SITE_HOME --><i class="icon fa-home fa-fw"></i><!-- ENDIF --><span itemprop="name">{L_INDEX}</span></a><meta itemprop="position" content="{{ navlink_position }}{% set navlink_position = navlink_position + 1 %}" /></span>

                        <!-- BEGIN navlinks -->
                                {% set NAVLINK_NAME = navlinks.BREADCRUMB_NAME | default(navlinks.FORUM_NAME) %}
                                {% set NAVLINK_LINK = navlinks.U_BREADCRUMB | default(navlinks.U_VIEW_FORUM) %}
-                               <span class="crumb" {$MICRODATA}<!-- IF navlinks.MICRODATA --> {navlinks.MICRODATA}<!-- ENDIF -->><a href="{{ NAVLINK_LINK }}" itemtype="https://schema.org/Thing" itemscope itemprop="item"><span itemprop="name">{{ NAVLINK_NAME }}</span></a><meta itemprop="position" content="{{ navlink_position }}{% set navlink_position = navlink_position + 1 %}" /></span>
+                               <span class="crumb" {$MICRODATA}<!-- IF navlinks.MICRODATA --> {navlinks.MICRODATA}<!-- ENDIF -->><a href="{{ NAVLINK_LINK }}" itemtype="https://schema.org/Thing"><span itemprop="name">{{ NAVLINK_NAME }}</span></a><meta itemprop="position" content="{{ navlink_position }}{% set navlink_position = navlink_position + 1 %}" />
+                               </span>
                                <!-- EVENT overall_header_navlink_append -->
                        <!-- END navlinks -->
                        <!-- EVENT overall_header_breadcrumb_append -->


(880 views)
[更多討論] 討論區 Windows, Linux, Perl, PHP, C/C++, Driver, Web 理論、應用、硬體、軟體




"PHPBB 3.3: Missing Field "ID" NAV-breadcrumbs Prosilver @ Google Search Console" 傳統頁面(電腦版)

首頁 繪圖設計 工作閒聊 比賽活動 美術討論 標籤 圖片
傳統桌面版 [ 登入/註冊 ]
© Vovo2000.com Mobile Version 小哈手機版 2020