• Does anyone know how I can add some text before a button that is a link? I tried it with .custom-button:before{content:”my text”;}
    but it did not work.

Viewing 3 replies - 1 through 3 (of 3 total)
  • hannah

    (@hannahritner)

    Hey,
    How are you adding the button? And where are you adding it? Can you post a link?

    Hannah

    Thread Starter kanlbll

    (@kanlbll)

    It is added in the order-processing-email from woocommerce when the customer has chosen paypal and it is a pay now button link. it is hooked in with
    add_action( ‘woocommerce_email_before_order_table’, array( $this, ’email_pay_now_button’ ), 0, 1 );and in the html it looks like

    pay now

    and when I use
    .button.custom-button:before{content:”My text;”}

    it does not work. You can probably add text by using the same hook but my knowledge in PHP is limited.

    I don’t think doing this with css would be the best way. Can you tell me what file the email_pay_now_button is in woocommerce? I’m not seeing it?

    Kadence Themes

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add text before button’ is closed to new replies.