• Resolved bvansambeek

    (@bvansambeek)


    Hello,

    I am trying to use an icon instead of text. I have tried the following:

    [enh_ajax_add_to_cart_button product=42 button_text=”fa-cart-plus fas”]

    This does not work.
    Is there any workaround?
    Can I replace the text with the icon through CSS?

    Kind regards,
    Boudewijn

Viewing 1 replies (of 1 total)
  • Plugin Author The Rite Sites

    (@theritesites)

    Hi Boudewijn,

    Thanks for your interest! At this point, I do not think you will be able to use font awesome styles within the button itself, nor any other class dependent icon as such.

    We have added the ability to do this as a backlog item in our github repo.

    If you are interested in a more custom route, you can achieve this through adding a css class to the button in question using javascript using the button element selector which will be changing in the coming days as we release 2.0.

    IF you run in to any issues, please feel free to open another ticket!

Viewing 1 replies (of 1 total)
  • The topic ‘Use icons in button’ is closed to new replies.