我已经成功地隐藏了一个特定产品的“确认”支付网关在结帐页面上。但是在购物车页面中仍然可以看到确认选项。如果一个特定的物品在购物车里,如何隐藏它?如果有用的话,内容位于p#learn-more.affirm-as-low-as块中。屏幕截图
<p id="learn-more" class="affirm-as-low-as" data-amount="32500" data-affirm-color="blue" data-learnmore-show="true" data-page-type="cart">Starting at <span class="affirm-ala-price">$30</span>/mo with <span class="__affirm-logo __affirm-logo-blue __ligature__affirm_full_logo__ __processed">Affirm</span>. <a class="affirm-modal-trigger" aria-label="Learn more about Affirm Financing (opens in modal)" href="javascript:void(0)">Learn more</a></p>发布于 2021-05-18 08:43:19
一个快速的解决方案是通过css隐藏它。根据您已经补充的详细信息,您可以通过添加以下样式表来为用户隐藏该元素:
* #learn-more.affirm-as-low-as {
display: none !important;
}由于您正在使用wordpress,在您不知道如何在您的网站上添加一些自定义样式表的情况下,有多种方法可供选择。从阅读这个文章开始
https://stackoverflow.com/questions/67582566
复制相似问题