0

i install a 3rd party rich snippets on my site that comes with porto theme i have done a structured data test today and it,s shows 2 sets of product now google always picking the default one. can some one help me to remove magento default rich snippets so i can use the 3rd party rich snippets

2
0

Using This Module You Can Remove Default Rich Snippets :-

magento-2-remove-default-rich-snippets

remove-default-magento-snippets

1
  • already tried this didn't work – Jakir Sama May 27 '19 at 14:45
0

Follow below instruction.

in etc/di.xml add below code

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
  <preference for="Magento\Framework\Pricing\Render\Amount" type="YourPackage\Yourmodule\Model\Pricing\Render\Amount" />    
</config>

Create Amount.php under app\code\YourPackage\Yourmodule\Model\Pricing\Render add below code

<?php

namespace YourPackage\Yourmodule\Model\Pricing\Render;


class Amount extends \Magento\Framework\Pricing\Render\Amount
{
    public function getSchema()
    {
         return false;

    }
}
1
  • Sorry that didn't work – Jakir Sama May 27 '19 at 15:41
0

Did anyone solve this issue in the end? I too have porto and a third party rich snippet module, resulting in the same issue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.