-
AuthorPosts
-
dominik_1 Friend
dominik_1
- Join date:
- September 2012
- Posts:
- 27
- Downloads:
- 14
- Uploads:
- 3
- Thanks:
- 2
- Thanked:
- 4 times in 3 posts
January 25, 2016 at 8:36 pm #868210Hello,
in Ja Mono template microdata that make the stars appear in google searches dosen’t work.
In Google Structured Data Testing Tool, I receive the error "For the review did not specify the item reviewed".
I performed the tests by an inspiration to my old template (ja lens, that worked correctly), and I found a solution on google test.
For example, for the page:
http://www.domenicoscavone.it/scuola-di-fotografia/enciclopedia-fotografica/utilizzo-del-flash.html
In testing tools, I changed this:
<div class="content_rating" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"><p class="unseen element-invisible">Valutazione attuale: <span itemprop="ratingValue">5</span> / <span itemprop="bestRating">5</span><meta itemprop="ratingCount" content="2123" /><meta itemprop="worstRating" content="0" /></p><img ondragstart="return false;" src="/media/system/images/rating_star.png" alt="Stella attiva" /><img ondragstart="return false;" src="/media/system/images/rating_star.png" alt="Stella attiva" /><img ondragstart="return false;" src="/media/system/images/rating_star.png" alt="Stella attiva" /><img ondragstart="return false;" src="/media/system/images/rating_star.png" alt="Stella attiva" /><img ondragstart="return false;" src="/media/system/images/rating_star.png" alt="Stella attiva" /></div><form method="post" action="http://www.domenicoscavone.it/scuola-di-fotografia/enciclopedia-fotografica/utilizzo-del-flash.html?hitcount=0" class="form-inline"><span class="content_vote"><label class="unseen element-invisible" for="content_vote_24">Valuta</label><select id="content_vote_24" name="user_rating"> <option value="1">valuta 1</option> <option value="2">valuta 2</option> <option value="3">valuta 3</option> <option value="4">valuta 4</option> <option value="5" selected="selected">valuta 5</option> </select>
To:
<div class="item-page" itemscope itemtype="http://schema.org/Article"> <meta itemprop="inLanguage" content="it-IT" /> <h2> L'Uso del flash </h2> <div class="link-media clearfix"><div class="content_rating" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"><p class="unseen element-invisible">Valutazione attuale: <span itemprop="ratingValue">5</span> / <span itemprop="bestRating">5</span><meta itemprop="ratingCount" content="2123" /><meta itemprop="worstRating" content="0" /></p><img ondragstart="return false;" src="/media/system/images/rating_star.png" alt="Stella attiva" /><img ondragstart="return false;" src="/media/system/images/rating_star.png" alt="Stella attiva" /><img ondragstart="return false;" src="/media/system/images/rating_star.png" alt="Stella attiva" /><img ondragstart="return false;" src="/media/system/images/rating_star.png" alt="Stella attiva" /><img ondragstart="return false;" src="/media/system/images/rating_star.png" alt="Stella attiva" /></div><form method="post" action="http://www.domenicoscavone.it/scuola-di-fotografia/enciclopedia-fotografica/utilizzo-del-flash.html?hitcount=0" class="form-inline"><span class="content_vote"><label class="unseen element-invisible" for="content_vote_24">Valuta</label><select id="content_vote_24" name="user_rating"> <option value="1">valuta 1</option> <option value="2">valuta 2</option> <option value="3">valuta 3</option> <option value="4">valuta 4</option> <option value="5" selected="selected">valuta 5</option> </select>
and it seems to work as ja lens. I haven’t figured out how to change the masthead or the default.php override for article to load a solution similar to the test.
Help me please.
Domenico
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
January 26, 2016 at 10:37 am #868730Hi,
You can try to add microdata into both files
templates/ja_mono/html/layouts/joomla/content/masthead.php templates/ja_mono/html/com_content/article/default.php
Hope it helps
Regards
dominik_1 Frienddominik_1
- Join date:
- September 2012
- Posts:
- 27
- Downloads:
- 14
- Uploads:
- 3
- Thanks:
- 2
- Thanked:
- 4 times in 3 posts
January 26, 2016 at 2:58 pm #868969I know it. Microdatas are already in default.php but are incomplete because they don’t load the title of the article and google Structured Data Testing Tool get the error: "For the review did not specify the item reviewed".
I don’t know how I have to edit the file. If I overwrite default.php like in jalens, It found, but I lose the vote, category etc on the masthead, along with the masthead introimage, and it moves with the title and category in the body.
The default.php of jalens and mono are too different and I don’t understand what I have to take from the first to implement the second.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
dominik_1 Frienddominik_1
- Join date:
- September 2012
- Posts:
- 27
- Downloads:
- 14
- Uploads:
- 3
- Thanks:
- 2
- Thanked:
- 4 times in 3 posts
January 29, 2016 at 12:28 pm #871505Thanks ninja.
Do you have news?
dominik_1 Frienddominik_1
- Join date:
- September 2012
- Posts:
- 27
- Downloads:
- 14
- Uploads:
- 3
- Thanks:
- 2
- Thanked:
- 4 times in 3 posts
January 30, 2016 at 7:32 pm #872490Today I had the afternoon off.
I think I found the solution to the problem, but first look that google loads again the stars on the results of research related to my site. Usually it takes a week to update the results.
However , in:
templates/ja_mono/html/layouts/joomla/content/masthead.php
after this:
<div class="jamasthead blend-bg" style="background-image:url(<?php echo $imageBg ?>);"> <div class="jamasthead-detail">
I added (like in Ja Lens, but I think I changed and update it years ago):
<div class="item-page<?php echo $this->pageclass_sfx; ?>" itemscope itemtype="http://schema.org/Article"><meta itemprop="inLanguage" content="<?php echo ($this->item->language === '*') ? JFactory::getConfig()->get('language') : $this->item->language; ?>" />
and I closed the div at the end of the sheet.
As I said before, the test seems to work, but before closing the topic I wait that google update results.
If you have in the meantime another solution please write here, thanks.
1 user says Thank You to dominik_1 for this useful post
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
February 1, 2016 at 10:03 am #873338Thanks for your sharing.
dominik_1 Frienddominik_1
- Join date:
- September 2012
- Posts:
- 27
- Downloads:
- 14
- Uploads:
- 3
- Thanks:
- 2
- Thanked:
- 4 times in 3 posts
February 2, 2016 at 1:30 pm #874318Ok, Google updated all results from the research.
I think it’s a good way to increase traffic.
It’s solved.
-
AuthorPosts
Viewing 8 posts - 1 through 8 (of 8 total)This topic contains 7 replies, has 2 voices, and was last updated by dominik_1 8 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum