I am trying to change the PayPal logo that appears on the checkout page, just before the customer is forwarded to PayPal to make a payment. Here is a screenshot:

enter image description here

I looked everywhere and tried to change the file below:


Still no joy. Any help or guidance will be appreciated!


Please change in below file ./vendor/magento/module-paypal/view/frontend/web/template/payment/paypal-express-in-context.html

After change below file please run below php bin/magento setup:static-content:deploy

  • Not a good idea to edit core files, extend it in your theme instead. – themanwhoknowstheman Jul 5 '18 at 16:45

Create the file in the path:


The file

 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
<div class="payment-method" css="_active: getCode() == isChecked()" afterRender="initListeners">
    <div class="payment-method-title field choice">
        <input type="radio"
               class="radio testing"
               attr="id: getCode()"
        <label attr="for: getCode()" class="label">
            <!-- PayPal Logo-->
            <!-- Here to change log-->
            <img attr="src: getPaymentAcceptanceMarkSrc(), alt: $t('Acceptance Mark')" class="payment-icon"/>
            <!-- PayPal Logo -->
            <span text="getTitle()"/>
            <a class="action action-help"
               attr="href: getPaymentAcceptanceMarkHref()"
               translate="'What is PayPal?'"/>
    <div class="payment-method-content">
        <each args="getRegion('messages')" render=""/>
        <div class="checkout-agreements-block">
            <each args="$parent.getRegion('before-place-order')" render=""/>
        <div class="actions-toolbar" attr="id: getButtonId()" afterRender="renderPayPalButtons"/>

Finally run the following command

php bin/magento setup:static-content:deploy -f
php bin/magento c:f

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.