• Resolved nsimmons

    (@nsimmons)


    Greetings

    LOVE the plugin. I would like to change the text in the “pay with paypal” input button located at the top of the invoice to something like ‘Pay with Paypal or Credit Card’. In sliced-shared-payment.php on line 98 the ‘Pay with’ text, but I wanted to get your advice before I went through the process of altering via a child theme.

    I would also like to make the button and text larger, which I believe is .btn-sm and then increase the font px.

    Thank you for any advice.

    Nick

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author SlicedInvoices

    (@slicedinvoices)

    Hi Nick,

    There is a filter you can use to change the button text, in the case of PayPal it’s ‘sliced_get_gateway_paypal_label’. For example you could add the following code to your functions.php file to change it:

    add_filter( ‘sliced_get_gateway_paypal_label’, ‘sliced_custom_gateway_paypal_label’ );
    function sliced_custom_gateway_paypal_label() {
    return ‘Pay with PayPal or Credit Card’;
    }

    To style it I would probably target as follows… as .btn-sm is a Bootstrap class you could end up targeting buttons other places if you’re not careful, so I would make it more specific:

    .sliced_gateway_button .btn-sm {
    font-size: 18px /*or whatever*/
    }

    Hope that helps!

    David
    Sliced Invoices Support

    Thread Starter nsimmons

    (@nsimmons)

    That is perfect! Thank you very much.

    Nick

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Pay with paypal button content’ is closed to new replies.