Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
–1 vote
641 views
in Plugins by

I made the breadcrumb settings from the link below. https://www.question2answer.org/qa/80803/how-to-fix-data-vocabulary-org-schema-deprecated-error?show=80803

 Before setting up I was getting 3 errors. Now I get 2 errors.

 The error position field is missing. 

Pages I get errors = home page and category page.

Q2A version: 1.8.5

3 Answers

0 votes
by
selected by
 
Best answer

User Kudok Thanks bro;

kudok helped to deal with the problem thank you. The answer to the question: 

Adding the second code under the body tag. my mistake is adding it under the head tag.

 I am using Turkish translation, if I have mistakes, do not be sorry.

0 votes
by
testing-tool is an old verification tool.

Unable to interpret JavaScript.

Please check with the following tools.

https://search.google.com/test/rich-results?hl=en
by
–1
Not! just language turkish
by
edited by
Are you making code changes and JavaScript insertions?
Even if you change only the code, you will get an error if you do not insert JavaScript.
The language doesn't matter at all.

That's because the numbers are inserted in the blank of the content with JavaScript.
If you don't have JavaScript, you won't get numbers, so you'll get an error.

It's natural that if you put a number in the content yourself, you won't get an error.
But then, if the breadcrumb get longer, you can't handle it, right?
1 will be included in all content. Wrong breadcrumb format.

<meta itemprop="position" content="1" />
...
<meta itemprop="position" content="1" />
...
<meta itemprop="position" content="1" />

The rule is to put 1,2,3... in the breadcrumb content in order from the top of the tree.

<meta itemprop="position" content="1" />
...
<meta itemprop="position" content="2" />
...
<meta itemprop="position" content="3" />

According to this order, Google will display breadcrumbs in the search results. If all the rankings are "1", Google won't know how to arrange them, right?

You care about breadcrumbs for SEO, right?
But if you write it in the wrong format, it will be counterproductive.

1.Please change the code correctly.
2.Be sure to insert JavaScript.
3.Please be sure to check at the following site.

https://search.google.com/test/rich-results?hl=en
by
Thank you very much for that. Well, I added javascript code to the home page html code. How can I set it without getting errors.
My code
<script> $(function(){ $("div.breadcrumb-wrapper meta").each(function(i){ $(this).attr("content",(i+1)); }); }); </script>
by
edited by
Check the following.

1.
This JavaScript depends on Jquery. So load it after Jquery.
I think the upper part of </body> is good.


<script src="./qa-content/jquery-3.5.1.min.js"></script>
.
.
</head>
<body>
.
.
<script>
$(function(){
    $('div.breadcrumb-wrapper meta').each(function(i){
        $(this).attr('content',(i+1));
    });
});
</script>
</body>

Now, I checked it in the same environment as you, but after all, if JavaScript is described above Jquery, no number is entered in content and an error occurs.
Be sure to insert JavaScript after Jquery. It's okay if it's around the top of </body>.

Maybe 1 will solve it, but just in case.

2.

You seem to be displaying a breadcrumb trail in your gadget, but is the rewritten source output properly?

3.

Is the tag with content meta? If it is different, you have to rewrite it.
by
I added this code to the head section. Where exactly should I add. I get the error when I test it on rich results.
by
+1
I don't know the Turkish version of Q2A. Is there a form that means "HTML to output at the bottom of the page"?

Please insert it there.

Do not insert it in the head section.

If you insert it in the head section, it will be read before Jquery and an error will occur.
by
https://hizliresim.com/lJW8bU
-img-
So is this right here? Html to be found in the head <head> section of all pages. Sorry for bothering you. I am someone who uses wordpress and has no knowledge of code.
by
There is a place where you can "check" it, right?
Gray square.

If you check it (click with the mouse), the form will open.

Do your best after that. You can do it alone, maybe.

I will not answer anymore.
by
Thank you for your reply so far. Unfortunately I don't have a computer. I'm doing my site from the phone. My site: https://cointurk.online
by
Just tap with your finger. Gray square.
Clicking with the mouse is the same as tapping with your finger.

Really really this is the last.
I hope you can do it well.
–1 vote
by
<meta itemprop="position" content="" /></span></li>',

Content 1

= Not error
...