I wish to add the new div in PDP page after price section in mageno 2
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
1
I have added custom div in /var/www/html/pot/app/design/frontend/pot_customization/Magento_Catalog/templates/product/price/amount/default.phtml . The div displays for all the products and works fine. But if a product have special price,the div displays two times near price . Please provide me a solution to add my custom div after the price section. default.phtml <?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ // @codingStandardsIgnoreFile ?> <?php /** @var MagentoFrameworkPricingRenderAmount $block */ ?> <span class="price-container <?= /* @escapeNotVerified */ ...