0

want to remove paypal icon from category pages: enter image description here

0

You need to create a file in your theme directory like following

app/design/frontend/[Theme_Package]/[Theme_name]/Magento_Paypal/layout/catalog_category_view.xml

And add the following code in the catalog_category_view.xml file.

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="paypal.partner.right.logo" remove="true"/>
    </body>
</page>

Save the file and clear cache, Hope it will work for you.

  • why you need to add this configuration if Magento provide you settings in admin ? your approach is not good. – Hassan Ali Shahzad Feb 7 at 6:52
0

You need to check which paypal method is enabled:

 Go to Stores -> configuration -> sales -> Payment Methods 
  -> Other paypal payment solutions -> Website Payments Pro Hosted Solution
  -> Basic Settings - PayPal Website Payments Pro Hosted Solution
  -> Adwance Settings -> Fronted Experience Settings.

Here select No Logo enter image description here

  • 1
    Its working perfectly. – Hassan Ali Shahzad Feb 7 at 6:55
  • It works very good on 2.3.1 – arno Jun 14 at 14:39

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.