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!


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

Please change in below file


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

First you will need to locate where the image is coming from. Location:


Create this file in your theme to over-ride core Magento functionality:


On (or around about) line 19, replace the img src with the src of the new image. Since this is a html file (not a phtml file), you won't be able to use php within this file so any reference to

Flush the magento cache(s): 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.