Hi guys,
I need to edit the following part of the structured data, can you let me know which part I need to edit to do this?
The reason why I need to add this because Google Search Console is throwing a Logo error and has dropped ALL my structured data including reviews, resulting in 30% drop in traffic on the site.
<article class=article><meta itemscope itemprop=mainEntityOfPage itemType=https://schema.org/WebPage itemid=https://google.com/article /><meta itemprop=inLanguage content=en-GB /><meta content=2017-02-13T11:49:07+00:00 itemprop=datePublished><aside class="article-aside clearfix"><dl class="article-info muted"> <dt class=article-info-term> Details </dt><dd class="createdby hasTooltip" itemprop=author title="Written by "> <i class="fa fa-user"></i> <span itemprop=name>David Attard</span> <span style="display: none;" itemprop=publisher itemscope itemtype=https://schema.org/Organization> <span itemprop=logo itemscope itemtype=https://schema.org/ImageObject> <img src=https://cdn.collectiveray.com//templates/ja_magz_ii/images/logo.png alt=logo itemprop=url /> <meta itemprop=width content=auto /><meta itemprop=height content=auto /></span> <meta itemprop=name content="David Attard"/></span> </dd><dd class="category-name hasTooltip" title="Category: "> <i class="fa fa-folder-open"></i> <a href=/wp/plugins/><span itemprop=genre>Plugins</span></a> </dd><dt class=hide>Details</dt><dd class=modified> <i class="fa fa-clock-o"></i> <time datetime=2019-05-09T20:21:50+00:00 itemprop=dateModified> Last Updated: 09 May 2019 </time> </dd> </dl> </aside>
I need to add a itemprop=url to the David Attard span in the organization, because this is throwing an error in the Google Search Console. (see attachment) (see attachment 2)
An example of the page which is throwing the error can be found here: https://www.collectiveray.com/reseller-hosting-business
You can see the error thrown by clicking here, under the Organization: https://search.google.com/structured-data/testing-tool/u/0/#url=https%3A%2F%2Fwww.collectiveray.com%2Freseller-hosting-business
I've tested this and by adding the URL with the author as below, the error is no longer thrown on the Google Structured data testing too.
I added this in the file: /templates/ja_magz_ii/html/com_content/article/default.php but its not getting output. All caching is switched off and other changes in different areas of the same file seem to be working.
Please let me know which file I need to edit to add this. I added the following code, but it seems it's not getting output.
<a itemprop="url" href="https://www.collectiveray.com">
<meta content="<?php echo $author; ?>" itemprop="name">
</a>
Can you let me know the correct place to add this?
David
