I suggest you ...

Entry Rich Snippets usage

Is it possible to cover the importance and SEO implications of using Rich Snippets / Microformats wherever possible?

40 votes
Vote
Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
You have left! (?) (thinking…)
tentokal shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

6 comments

Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
Submitting...
  • sevittopcu commented  ·   ·  Flag as inappropriate

    I have added product snippet & it seems working (you may need to revise currency code by mauel)
    Add the code \components\com_djclassifieds\views\item\tmpl\default.php
    just before java code start around line 510

    you can test it from

    https://search.google.com/structured-data/testing-tool?hl=tr

    <?php //sevit start; ?>
    <div id="rich-card-snippet-elindevarmi_com" style="display: none;">
    <div itemscope itemtype="http://data-vocabulary.org/Product">
    <span itemprop="name">
    <?php echo $item->name; ?>
    </span>
    <img itemprop="image" src="<?php echo JURI::root();?><?php echo JURI::base(true).$this->item_images[0]->thumb_b;?>" />
    <span itemprop="description">
    <?php echo $item->intro_desc; ?>
    </span> Product #:
    <span itemprop="identifier" content="<?php echo $item->id; ?>">
    <?php echo $item->id; ?>
    </span>
    <span itemprop="offerDetails" itemscope itemtype="http://data-vocabulary.org/Offer">
    <?php echo $item->t_name; ?>
    <meta itemprop="currency" content="<?php echo $item->currency ;?>" />
    <span itemprop="price">
    <?php echo $item->price ;?>
    </span>
    </span>
    </div>
    <a href="http://elindevarmi.com/">elindevarmi.com</a>
    </div>
    <?php //sevit end; ?>

  • tentokal commented  ·   ·  Flag as inappropriate

    "itemprop=name" for the Title, "itemprop=price" for the Price field, "itemprop=image" for image for example......

Feedback and Knowledge Base