Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter to add an icon before the Title #147

Open
isaumya opened this issue May 8, 2020 · 0 comments
Open

Filter to add an icon before the Title #147

isaumya opened this issue May 8, 2020 · 0 comments
Labels
enhancement feature-suggestion Suggestions for new Features

Comments

@isaumya
Copy link

isaumya commented May 8, 2020

Hi,
Currently in the settings of the plugin there is the section called title e.g. Credit / Debit Card which shows up on the checkout page. Now if you let's say want to add a credit card icon before that text, I don't know if there is any existing filter available for that. Currently I simply add the i tag before the title. But though this hacky approach works fine on the checkout page, but it does create a lot of issues as mentioned below:

  • Inside the WooCommerce dashboard for every payment, the payment method shows up like <i class="something"></i> Credit / Debit Card.
  • The same issue can also can be seen in many other places.

The reason for this is most of these places uses esc_html() on the payment method mane.

So, it would be really helpful if there was any easy filter using which an icon can be added without adding HTML inside the payment method name.

If there is any such existing filter with I'm unaware of, please let me know. It would be really helpful.

Thanks. Looking forward to a reply.

@ramth05 ramth05 added enhancement feature-suggestion Suggestions for new Features labels Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement feature-suggestion Suggestions for new Features
Projects
None yet
Development

No branches or pull requests

2 participants