相关疑难解决方法(0)

JSON-LD Schema.org:多个视频/图像页面

我无法弄清楚如何在同一页面上定义一堆视频.即搜索页面.假设您有一个可以返回50个不同视频的网站.那么你应该怎么定义这个JSON-LD

seo web schema.org json-ld

17
推荐指数
1
解决办法
7932
查看次数

一个页面中有多个JSON-LD标记组

我可以在同一页面中使用多个JSON-LD组(使用Schema.org)吗?

如果我不能,如何将它们组合在一起?我对语法不太熟悉.

第1组:

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "LocalBusiness",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "3102 Highway 98",
    "addressRegion": "FL",
    "addressLocality": "Mexico Beach",
    "postalCode": "45252",
    "addressCountry": "US",
  },
  "geo": {
    "@type": "GeoCoordinates",
    "latitude": "40.75",
    "longitude": "73.98"
  },
  "name": "Beachwalk Beachwear & Giftware",
  "telephone": "850-648-4200",
  "email": "admin@example.com",
  "faxNumber": "860-562-4250",

}
</script>
Run Code Online (Sandbox Code Playgroud)

第2组:

<script type="application/ld+json">
{
    "@context": "http://schema.org",
    "@type": "Organization",
    "url": "http://example.com",
    "name": "My Domain Title",
    "logo": "http://example.com/wp-content/uploads/2015/08/abc.jpg",
    "contactPoint": [
        {
            "@type": "ContactPoint",
            "telephone": "0192-39192130",
            "contactType": "customer service"
        },
        {
            "@type": "ContactPoint", …
Run Code Online (Sandbox Code Playgroud)

html5 schema.org json-ld

12
推荐指数
1
解决办法
2177
查看次数

你如何结合几个JSON-LD标记?

我发现很难将几个或几个JSON-LD标记合并为一个新手.你能告诉我我做错了什么吗?

当我在Google结构化数据测试工具中输入以下标记时,它只显示Organization模式类型的结果,同时也有BreadcrumbList类型.

<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Organization",
"legalName": "Example INC",
"logo": "https://www.example.com/image.png",
"url": "https://www.example.com/",
"sameAs": [
"https://www.facebook.com/example",
"https://www.linkedin.com/company/example",
"https://twitter.com/example",
"https://www.youtube.com/user/example",
"https://en.wikipedia.org/wiki/example"
]
}
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": "1",
"item": {
"@id": "https://www.example.com/",
"name": "Homepage" 
}
}
]
</script>
Run Code Online (Sandbox Code Playgroud)

html json json-ld

4
推荐指数
1
解决办法
1910
查看次数

单个页面上有多个 FAQPage 精选片段

我们希望使用 JSON-LD 格式以FAQPage的形式添加特色片段。使用 Google 页面概述上的“查看标记”链接FAQPage,我们可以获得下面的示例特色片段。这似乎意味着该页面的所有问题都应该在一个<script>标签中。

我们通过Google 的结构化数据测试工具丰富结果工具运行了以下内容,它返回了零错误。然而,没有提到它全部在一个script标签中。

问题

如果我们要使用FAQPage特色片段,我们需要使用的正确变体是什么(1 或 2)?

我们尝试了什么

变体 1 - 将所有问题集中在一个script标签中:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [{
    "@type": "Question",
    "name": "What is the return policy?",
    "acceptedAnswer": {
      "@type": "Answer",
      "text": "Most unopened items in new condition and returned within <strong>90 days</strong> will receive a refund or exchange. Some items have a modified return policy noted on the receipt …
Run Code Online (Sandbox Code Playgroud)

html schema.org json-ld google-rich-snippets

1
推荐指数
1
解决办法
1514
查看次数

如何在网站主页上使用schema.org和JSON-LD标记数据

最近,我读了很多有关使用schema.org标记结构化数据的信息,第一个问题是,建议完全使用它json-ld吗?因为它似乎是新的,尚未得到完全支持。我的第二个问题是在主页或存档页面(通常是其中包含多个文章或产品或博客文章的页面)上,我如何使用schema.org?例如这样的页面:

<!DOCTYPE html>
<html>
    <head>
        <title>Blog Home Page</title>
    </head>

    <body>
        <h1>Blog title</h1>


        <!-- this needs schema.org -->
        <article>
            <h2>Article title</h2>
            Writtem by <span>Authorname</span> on <time datetime="">21 april</time>

            <p>
                Some text
            </p>

            Rated : 
            <div class="star-rate">
                <span class="star full">
                <span class="star full">
                <span class="star full">
                <span class="star half">
                <span class="star empty">
            </div>

            By <span>5</span> users.
        </article>

        <article>
            <h2>Article title</h2>
            Writtem by <span>Authorname</span> on <time datetime="">21 april</time>

            <p>
                Some text
            </p>

            Rated : 
            <div class="star-rate">
                <span class="star full">
                <span class="star …
Run Code Online (Sandbox Code Playgroud)

html5 schema.org json-ld

0
推荐指数
1
解决办法
799
查看次数

标签 统计

json-ld ×5

schema.org ×4

html ×2

html5 ×2

google-rich-snippets ×1

json ×1

seo ×1

web ×1