Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • dominik_1 Friend
    #868210

    Hello,

    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 Moderator
    #868730

    Hi,

    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 Friend
    #868969

    I 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 Moderator
    #869528

    Due to the concept, JA Mono is a bit different from other templates, you can’t change microdata as JA Lens.

    I’ve passed this to the team for further checking, you can tracks its status here

    dominik_1 Friend
    #871505

    Thanks ninja.

    Do you have news?

    dominik_1 Friend
    #872490

    Today 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.

    Ninja Lead Moderator
    #873338

    Thanks for your sharing.

    dominik_1 Friend
    #874318

    Ok, Google updated all results from the research.

    I think it’s a good way to increase traffic.

    It’s solved.


    1. screen_google
    2. screen_google_2
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, 3 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum