M
M
marcus_shredda2019-09-21 15:25:00
HTML
marcus_shredda, 2019-09-21 15:25:00

How to add schema markup to the body of the site, so as not to swear?

The theme is this.
I want to insert the following script in the body:

<script type="application/ld+json">
{
    "@context": "http://schema.org",
    "@type": "LocalBusiness",
    "name": "Автомобили с пробегом в Калининграде от официальных дилеров.",
    "address": {
        "@type": "PostalAddress",
        "addressLocality": "Калининград",
        "addressRegion": "RU",
        "postalCode": "238311",
        "streetAddress": "Московский проспект, 270"
    },
    "image": "https://ottokar39.ru/img/logo.svg",
    "email": "[email protected]",
    "telephone": ["+7 (401) 256-77-77", "+7 (401) 272-23-15"],
  "priceRange": "100000 - 1600000",
    "url": "https://ottokar39.ru/",
    "paymentAccepted": [ "cash", "credit card", "invoice" ],
    "openingHours":["Mo 9:00-20:00","Tu 9:00-20:00","We 9:00-20:00","Th 9:00-20:00","Fr 9:00-20:00","Sa 9:00-20:00","Su 9:00-20:00"],
    "openingHoursSpecification": [
        {
        "@type": "OpeningHoursSpecification",
        "dayOfWeek": "http:/schema.org/Monday",
        "opens": "9:00:00",
        "closes": "20:00:00"
        }
,        {
        "@type": "OpeningHoursSpecification",
        "dayOfWeek": "http:/schema.org/Tuesday",
        "opens": "9:00:00",
        "closes": "20:00:00"
        }
,        {
        "@type": "OpeningHoursSpecification",
        "dayOfWeek": "http:/schema.org/Wednesday",
        "opens": "9:00:00",
        "closes": "20:00:00"
        }
,        {
        "@type": "OpeningHoursSpecification",
        "dayOfWeek": "http:/schema.org/Thursday",
        "opens": "9:00:00",
        "closes": "20:00:00"
        }
,        {
        "@type": "OpeningHoursSpecification",
        "dayOfWeek": "http:/schema.org/Friday",
        "opens": "9:00:00",
        "closes": "20:00:00"
        }
,        {
        "@type": "OpeningHoursSpecification",
        "dayOfWeek": "http:/schema.org/Saturday",
        "opens": "9:00:00",
        "closes": "20:00:00"
        }
,        {
        "@type": "OpeningHoursSpecification",
        "dayOfWeek": "http:/schema.org/Sunday",
        "opens": "9:00:00",
        "closes": "20:00:00"
        }
    ]
}
</script>

My programmer tells me:
- it doesn't compile in the body of the page...
- it doesn't compile in the head either...
- it throws an error. I clean everything works ...
- I insert the script into the page, the page does not load ...
- it seems to me that the question is in the @ symbols in the code. In razor, this is a special character that indicates the beginning of a piece of program code...
Website - ottokar39.ru
ASP.NET + C#
First question: what could be the problem? Where to dig here?
Second question: If you connect this script to the page as a separate script file, will the robots see this markup? If so, what additional things can be done there to be seen for sure? And how to check it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question