I noticed, if I add more than 3 credit card icons usin your plugin on cell phones it steals space and causes images to sit below the text making it look ugly
On Shopify stores there’s a hover effect with all the other cards.
https://drive.google.com/drive/folders/1BTfHz4H75ddBl9az5hGA6Zx7TLFOI0sk?usp=sharing
Thanks.
]]>′function rs_removed_icon( $icons ) {
$icons = str_replace( ‘‘, ”, $icons );
$icons = str_replace( ‘‘, ”, $icons );
$icons = str_replace( ‘<img src=”https://www.bikerino.com/wp-content/plugins/woo-gutenberg-products-block/assets/img/payment-methods/visa.svg” alt=”Visa”
width=”32″ style=”margin-left: 0.3em” />’, ”, $icons );
return $icons;
}
add_filter( ‘wc_block_components_payment_method_icons’, ‘rs_removed_icon’);′
or this
′function rs_removed_icon( $icons ) {
$icons = str_replace( ‘amex‘, ”, $icons );
$icons = str_replace( ‘visa‘, ”, $icons );
return $icons;
}
add_filter( ‘wc-block-components-payment-method-icons’, ‘rs_removed_icon’);′
but i dont get it to work.
I am not a developer, so maybe its beyond my capability.
Any ideas on this topic? I can not imagine that i am the only one with this problem.
Many thanks in advance
′add_filter( ‘wc_stripe_payment_icons’, ‘change_my_icons’ );
function change_my_icons( $icons ) {
$icons[‘visa’] = ”;
return $icons;
}′
or this
′function rs_removed_icon( $icons ) {
$icons = str_replace( ‘JCB‘, ”, $icons );
$icons = str_replace( ‘Diners‘, ”, $icons );
return $icons;
}
add_filter( ‘woocommerce_gateway_icon’, ‘rs_removed_icon’);′
but i dont get it to work.
I am not a developer, so maybe its beyond my capability.
Any ideas on this topic? I can not imagine that i am the only one with this problem.
Many thanks in advance
### WordPress Environment ###
WordPress address (URL): https://www.bikerino.com
Site address (URL): https://www.bikerino.com
WC Version: 4.8.0
REST API Version: ✔ 4.8.0
WC Blocks Version: ✔ 4.2.0
Action Scheduler Version: ✔ 3.1.6
WC Admin Version: ✔ 1.7.3
Log Directory Writable: ✔
WP Version: 5.6
WP Multisite: –
WP Memory Limit: 205 MB
WP Debug Mode: –
WP Cron: ✔
Language: de_DE
External object cache: –
### Server Environment ###
Server Info: Apache
PHP Version: 7.4.14
PHP Post Max Size: 256 MB
PHP Time Limit: 300
PHP Max Input Vars: 5000
cURL Version: 7.68.0
OpenSSL/1.1.1f
SUHOSIN Installed: –
MySQL Version: 5.5.5-10.3.27-MariaDB-1:10.3.27+maria~focal
Max Upload Size: 256 MB
Default Timezone is UTC: ✔
fsockopen/cURL: ✔
SoapClient: ✔
DOMDocument: ✔
GZip: ✔
Multibyte String: ✔
Remote Post: ✔
Remote Get: ✔
### Database ###
WC Database Version: 4.8.0
WC Database Prefix: www_
Datenbank-Gesamtgr??e: 27.39MB
Datenbank-Datengr??e: 25.20MB
Datenbank-Indexgr??e: 2.19MB
www_woocommerce_sessions: Daten: 0.06MB + Index: 0.02MB + Engine InnoDB
www_woocommerce_api_keys: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
www_woocommerce_attribute_taxonomies: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
www_woocommerce_downloadable_product_permissions: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB
www_woocommerce_order_items: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
www_woocommerce_order_itemmeta: Daten: 0.08MB + Index: 0.06MB + Engine InnoDB
www_woocommerce_tax_rates: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB
www_woocommerce_tax_rate_locations: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
www_woocommerce_shipping_zones: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
www_woocommerce_shipping_zone_locations: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
www_woocommerce_shipping_zone_methods: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
www_woocommerce_payment_tokens: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
www_woocommerce_payment_tokenmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
www_woocommerce_log: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
www_actionscheduler_actions: Daten: 0.11MB + Index: 0.11MB + Engine InnoDB
www_actionscheduler_claims: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
www_actionscheduler_groups: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
www_actionscheduler_logs: Daten: 0.08MB + Index: 0.03MB + Engine InnoDB
www_cartflows_ca_cart_abandonment: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
www_cartflows_ca_email_history: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
www_cartflows_ca_email_templates: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
www_cartflows_ca_email_templates_meta: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
www_cli_scripts: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
www_cmplz_cookiebanners: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
www_cmplz_cookies: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
www_cmplz_services: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
www_commentmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
www_comments: Daten: 0.06MB + Index: 0.09MB + Engine InnoDB
www_links: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
www_ms_snippets: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
www_options: Daten: 4.05MB + Index: 0.28MB + Engine InnoDB
www_pimwick_gift_card: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
www_pimwick_gift_card_activity: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
www_postmeta: Daten: 15.30MB + Index: 0.38MB + Engine InnoDB
www_posts: Daten: 4.47MB + Index: 0.13MB + Engine InnoDB
www_snippets: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
www_termmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
www_terms: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
www_term_relationships: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
www_term_taxonomy: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
www_usermeta: Daten: 0.05MB + Index: 0.03MB + Engine InnoDB
www_users: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB
www_wc_admin_notes: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
www_wc_admin_note_actions: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
www_wc_category_lookup: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
www_wc_customer_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
www_wc_download_log: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
www_wc_order_coupon_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
www_wc_order_product_lookup: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB
www_wc_order_stats: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB
www_wc_order_tax_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
www_wc_product_meta_lookup: Daten: 0.02MB + Index: 0.09MB + Engine InnoDB
www_wc_reserved_stock: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
www_wc_tax_rate_classes: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
www_wc_webhooks: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
www_wpforms_tasks_meta: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
### Post Type Counts ###
attachment: 119
custom_css: 5
customize_changeset: 13
elementor_library: 4
elementor-hf: 1
nav_menu_item: 3
page: 12
post: 2
product: 8
product_variation: 21
revision: 303
shop_coupon: 3
shop_order: 30
shop_order_refund: 1
wpforms: 1
### Security ###
Secure connection (HTTPS): ✔
Hide errors from visitors: ✔
### Active Plugins (16) ###
Starter Templates: von Brainstorm Force – 2.4.0
Code Snippets: von Code Snippets Pro – 2.14.0
Complianz | GDPR/CCPA Cookie Consent: von Really Simple Plugins – 4.9.1
Easy WP SMTP: von wpecommerce
alexanderfoxc – 1.4.5
Elementor: von Elementor.com – 3.0.16
Elementor - Header, Footer & Blocks: von Brainstorm Force
Nikhil Chavan – 1.5.4
Insert Headers and Footers: von WPBeginner – 1.5.0
Facebook for WordPress: von Facebook – 3.0.0
Printful Integration for WooCommerce: von Printful – 2.1.18
PW WooCommerce Gift Cards: von Pimwick
LLC – 1.169
UpdraftPlus – Sichern/Wiederherstellen: von UpdraftPlus.Com
DavidAnderson – 1.16.46
WooCommerce Bl?cke: von Automattic – 4.2.0
WooCommerce Stripe-Gateway: von WooCommerce – 4.7.0
WooCommerce: von Automattic – 4.8.0
WP Reset: von WebFactory Ltd – 1.82
WPForms Lite: von WPForms – 1.6.4.1
### Inactive Plugins (1) ###
WooCommerce Cart Abandonment Recovery: von CartFlows Inc – 1.2.8
### Settings ###
API Enabled: –
Force SSL: –
Currency: EUR (€)
Currency Position: right
Thousand Separator: .
Decimal Separator: ,
Number of Decimals: 2
Taxonomies: Product Types: external (external)
grouped (grouped)
pw gift card (pw-gift-card)
simple (simple)
variable (variable)
Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
exclude-from-search (exclude-from-search)
featured (featured)
outofstock (outofstock)
rated-1 (rated-1)
rated-2 (rated-2)
rated-3 (rated-3)
rated-4 (rated-4)
rated-5 (rated-5)
Connected to WooCommerce.com: –
### WC Pages ###
Shop-Basis: #8 - /shop/
Warenkorb: ❌ Die Seite enth?lt nicht den Shortcode.
Kasse: ❌ Die Seite enth?lt nicht den Shortcode.
Mein Konto: #11 - /mein-konto/
Allgemeine Gesch?ftsbedingungen: #1898 - /agb/
### Theme ###
Name: Astra
Version: 2.6.2
Author URL: https://wpastra.com/about/
Child Theme: ❌ – Wenn du WooCommerce mit einem Theme
das du nicht selbst entwickelt hast
an eigene Bedürfnisse anpasst
dann empfehlen wir die Verwendung eines Child-Themes. Siehe Wie du ein Child-Theme erstellst (engl.)
WooCommerce Support: ✔
### Templates ###
Overrides: –
### Action Scheduler ###
Abgeschlossen: 227
Oldest: 2020-12-14 10:22:29 +0100
Newest: 2021-01-10 12:45:37 +0100
Ausstehend: 3
Oldest: 2021-01-11 11:30:14 +0100
Newest: 2021-01-11 12:45:37 +0100
]]>′add_filter( ‘wc_stripe_payment_icons’, ‘change_my_icons’ );
function change_my_icons( $icons ) {
$icons[‘visa’] = ”;
return $icons;
}′
or this
′function rs_removed_icon( $icons ) {
$icons = str_replace( ‘‘, ”, $icons );
$icons = str_replace( ‘‘, ”, $icons );
return $icons;
}
add_filter( ‘woocommerce_gateway_icon’, ‘rs_removed_icon’);′
but i dont get it to work.
I am not a developer, so maybe its beyond my capability.
Any ideas on this topic? I can not imagine that i am the only one with this problem.
Many thanks in advance
### WordPress Environment ###
WordPress address (URL): https://www.bikerino.com
Site address (URL): https://www.bikerino.com
WC Version: 4.8.0
REST API Version: ✔ 4.8.0
WC Blocks Version: ✔ 4.2.0
Action Scheduler Version: ✔ 3.1.6
WC Admin Version: ✔ 1.7.3
Log Directory Writable: ✔
WP Version: 5.6
WP Multisite: –
WP Memory Limit: 205 MB
WP Debug Mode: –
WP Cron: ✔
Language: de_DE
External object cache: –
### Server Environment ###
Server Info: Apache
PHP Version: 7.4.14
PHP Post Max Size: 256 MB
PHP Time Limit: 300
PHP Max Input Vars: 5000
cURL Version: 7.68.0
OpenSSL/1.1.1f
SUHOSIN Installed: –
MySQL Version: 5.5.5-10.3.27-MariaDB-1:10.3.27+maria~focal
Max Upload Size: 256 MB
Default Timezone is UTC: ✔
fsockopen/cURL: ✔
SoapClient: ✔
DOMDocument: ✔
GZip: ✔
Multibyte String: ✔
Remote Post: ✔
Remote Get: ✔
### Database ###
WC Database Version: 4.8.0
WC Database Prefix: www_
Datenbank-Gesamtgr??e: 27.39MB
Datenbank-Datengr??e: 25.20MB
Datenbank-Indexgr??e: 2.19MB
www_woocommerce_sessions: Daten: 0.06MB + Index: 0.02MB + Engine InnoDB
www_woocommerce_api_keys: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
www_woocommerce_attribute_taxonomies: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
www_woocommerce_downloadable_product_permissions: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB
www_woocommerce_order_items: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
www_woocommerce_order_itemmeta: Daten: 0.08MB + Index: 0.06MB + Engine InnoDB
www_woocommerce_tax_rates: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB
www_woocommerce_tax_rate_locations: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
www_woocommerce_shipping_zones: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
www_woocommerce_shipping_zone_locations: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
www_woocommerce_shipping_zone_methods: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
www_woocommerce_payment_tokens: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
www_woocommerce_payment_tokenmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
www_woocommerce_log: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
www_actionscheduler_actions: Daten: 0.11MB + Index: 0.11MB + Engine InnoDB
www_actionscheduler_claims: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
www_actionscheduler_groups: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
www_actionscheduler_logs: Daten: 0.08MB + Index: 0.03MB + Engine InnoDB
www_cartflows_ca_cart_abandonment: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
www_cartflows_ca_email_history: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
www_cartflows_ca_email_templates: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
www_cartflows_ca_email_templates_meta: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
www_cli_scripts: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
www_cmplz_cookiebanners: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
www_cmplz_cookies: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
www_cmplz_services: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
www_commentmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
www_comments: Daten: 0.06MB + Index: 0.09MB + Engine InnoDB
www_links: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
www_ms_snippets: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
www_options: Daten: 4.05MB + Index: 0.28MB + Engine InnoDB
www_pimwick_gift_card: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
www_pimwick_gift_card_activity: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
www_postmeta: Daten: 15.30MB + Index: 0.38MB + Engine InnoDB
www_posts: Daten: 4.47MB + Index: 0.13MB + Engine InnoDB
www_snippets: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
www_termmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
www_terms: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
www_term_relationships: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
www_term_taxonomy: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
www_usermeta: Daten: 0.05MB + Index: 0.03MB + Engine InnoDB
www_users: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB
www_wc_admin_notes: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
www_wc_admin_note_actions: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
www_wc_category_lookup: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
www_wc_customer_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
www_wc_download_log: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
www_wc_order_coupon_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
www_wc_order_product_lookup: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB
www_wc_order_stats: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB
www_wc_order_tax_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
www_wc_product_meta_lookup: Daten: 0.02MB + Index: 0.09MB + Engine InnoDB
www_wc_reserved_stock: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
www_wc_tax_rate_classes: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
www_wc_webhooks: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
www_wpforms_tasks_meta: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
### Post Type Counts ###
attachment: 119
custom_css: 5
customize_changeset: 13
elementor_library: 4
elementor-hf: 1
nav_menu_item: 3
page: 12
post: 2
product: 8
product_variation: 21
revision: 304
shop_coupon: 3
shop_order: 30
shop_order_refund: 1
wpforms: 1
### Security ###
Secure connection (HTTPS): ✔
Hide errors from visitors: ✔
### Active Plugins (16) ###
Starter Templates: von Brainstorm Force – 2.4.0
Code Snippets: von Code Snippets Pro – 2.14.0
Complianz | GDPR/CCPA Cookie Consent: von Really Simple Plugins – 4.9.1
Easy WP SMTP: von wpecommerce
alexanderfoxc – 1.4.5
Elementor: von Elementor.com – 3.0.16
Elementor - Header, Footer & Blocks: von Brainstorm Force
Nikhil Chavan – 1.5.4
Insert Headers and Footers: von WPBeginner – 1.5.0
Facebook for WordPress: von Facebook – 3.0.0
Printful Integration for WooCommerce: von Printful – 2.1.18
PW WooCommerce Gift Cards: von Pimwick
LLC – 1.169
UpdraftPlus – Sichern/Wiederherstellen: von UpdraftPlus.Com
DavidAnderson – 1.16.46
WooCommerce Bl?cke: von Automattic – 4.2.0
WooCommerce Stripe-Gateway: von WooCommerce – 4.7.0
WooCommerce: von Automattic – 4.8.0
WP Reset: von WebFactory Ltd – 1.82
WPForms Lite: von WPForms – 1.6.4.1
### Inactive Plugins (1) ###
WooCommerce Cart Abandonment Recovery: von CartFlows Inc – 1.2.8
### Settings ###
API Enabled: –
Force SSL: –
Currency: EUR (€)
Currency Position: right
Thousand Separator: .
Decimal Separator: ,
Number of Decimals: 2
Taxonomies: Product Types: external (external)
grouped (grouped)
pw gift card (pw-gift-card)
simple (simple)
variable (variable)
Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
exclude-from-search (exclude-from-search)
featured (featured)
outofstock (outofstock)
rated-1 (rated-1)
rated-2 (rated-2)
rated-3 (rated-3)
rated-4 (rated-4)
rated-5 (rated-5)
Connected to WooCommerce.com: –
### WC Pages ###
Shop-Basis: #8 - /shop/
Warenkorb: ❌ Die Seite enth?lt nicht den Shortcode.
Kasse: ❌ Die Seite enth?lt nicht den Shortcode.
Mein Konto: #11 - /mein-konto/
Allgemeine Gesch?ftsbedingungen: #1898 - /agb/
### Theme ###
Name: Astra
Version: 2.6.2
Author URL: https://wpastra.com/about/
Child Theme: ❌ – Wenn du WooCommerce mit einem Theme
das du nicht selbst entwickelt hast
an eigene Bedürfnisse anpasst
dann empfehlen wir die Verwendung eines Child-Themes. Siehe Wie du ein Child-Theme erstellst (engl.)
WooCommerce Support: ✔
### Templates ###
Overrides: –
### Action Scheduler ###
Abgeschlossen: 228
Oldest: 2020-12-11 10:48:38 +0100
Newest: 2021-01-10 12:45:37 +0100
Ausstehend: 3
Oldest: 2021-01-11 11:30:14 +0100
Newest: 2021-01-11 12:45:37 +0100
]]>So I hope someone can help me. There’s a weird Stripe “Diners” Payment Icon that shows during checkout and I’d like to remove it but I can’t figure out how. If there were more universally recognized icons there like MC, DC, VISA, etc I’d feel better but this one just looks strange and foreign and I don’t want it deterring or confusing customers.
Here’s a screenshot of it: https://ibb.co/mipaM7
Could someone please help me either:
a.) Hide payment icons all together so it only says “Secure Checkout”
or b.) give me some sort of CSS or option that will show the universal CC icons next to the “Secure Checkout” text
Please and thank ya
]]>