magento - 有什么方法可以在 magento 的 paypal 付款方式页面上更新 css 吗?

标签 magento paypal magento2 payment-method

I want to update this page but it's css is loading from paypal website. common.css is loading from paypal website,still no changes are getting reflected

我想更新此页面,但它的 CSS 正在从 Paypal 网站加载。 common.css 正在从 paypal 网站加载,仍然没有反射(reflect)任何变化

最佳答案

如果您尝试像在 M1 中那样使用 jQuery 调整 CSS 组件 - 这在 M2 中将不再有效,因为 M2 使用 RequireJS。

相反,您应该在所需的 PHTML 文件中添加如下内容:

<script>
    require([
        "jquery"
        ], function ($) {
                // Perform desired action(s) on the selector(s) you're interested in
                // For example:
                $("#UiElementOfInterest").hide();
            });
        });
</script>

希望对您有所帮助! :)

关于magento - 有什么方法可以在 magento 的 paypal 付款方式页面上更新 css 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46469010/

相关文章:

mysql - Magento 2 在模块中创建多数据库表

css - Magento - 使用自定义变量允许最终用户从管理面板修改样式 - 缓存?

php - 如何保护网站的 Paypal 集成

php - 在Payum中如何查看 "correctly"付款状态 "pending"?

css - Magento2:删除 pub/static 文件夹并进行部署后,找不到 css 文件

php - 迷你购物车更改未生效 - Magento 2

php - 在 Magento 1.9 中通过 mysql 更新产品属性

magento - 管理数据的 RSS 安全性

Magento:将验证码添加到自定义联系表单

php - Paypal IPN 返回日期时间格式