首頁 美術繪圖 | 美術設計 | 熱門標籤 | 首選 | 首頁宣傳 | 近期作品 論壇: 發表 | 美術工作 | 美術比賽 | 展覽活動 | 美術相關 | 一般討論 | 美術同好 CG 討論 :: Photoshop | Painter | 3D 行動 | AMP

【 立即註冊 】 : 更改個人資料 : : 登入

會員名稱: 登入密碼: 保持登入

PHPBB 3.3: Missing Field "ID" NAV-breadcrumbs Prosilver @ Google Search Console

發表新主題 回覆主題 討論區 Windows, Linux, Perl, PHP, C/C++, Driver, Web 理論、應用、硬體、軟體

| 1頁, 共1
人氣點閱:11323 發表人
PHPBB 3.3: Missing Field "ID" NAV-breadcrumbs Prosilver @ Google Search Console 2020-01-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 -->


Missing-Field-ID-Google-Search-Console-PHPBB-NAV-Breadcrumbs-itemscope.jpg
Missing-Field-ID-Google-Search-Console-PHPBB-NAV-Breadcrumbs-itemscope.jpg



________________

美術插畫設計案子報價系統 v0.1 Beta
爪哇禾雀
Type



繪圖畫廊設計藝廊
攝影相簿留言板
最愛收藏分類標籤
暱稱: Type
註冊: 2002-11-30
發表: 11182
來自: vovo2000.com
V幣: 901800
/ / /














資訊相關理論、技術、管理、應用、產品等
發表新主題 回覆主題