• Resolved mili909

    (@mili909)


    I need to change the text that says “Leave At Door”. Can i do it in the plugin or do i need some coding. If i need code could you help me with that ?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter mili909

    (@mili909)

    finish

    Thread Starter mili909

    (@mili909)

    bumbum

    Plugin Author Scott DeLuzio

    (@scottdeluzio)

    Hi @mili909,
    It seems like you have resolved this issue already, but for anyone else who is looking for help with this, you can edit the text in a couple different ways.

    Translation
    All of the text strings in the plugin are able to be translated into another language. To do so, use a program like Poedit to create a translation file in your language. The required POT language file is included in the plugin’s languages directory, which will allow you to create your local language files. For more information on how to translate a WordPress plugin please see this support document.

    With Code
    To edit the “Leave At Door” text that is shown on the checkout page, you will need to use a little code. The following code will go in your theme’s functions.php file or in a custom plugin.

    
    add_filter( 'leave_at_door_text', 'change_leave_at_door_text' );
    function change_leave_at_door_text( $leave_at_door ) {
        return 'Your new text';
    }
    

    Note: While you didn’t specifically ask for this, someone else might be looking for it. You can also change the text of the “Instructions for delivery driver” text using a similar method:

    
    add_filter( 'leave_at_door_delivery_instructions', 'change_delivery_instructions_text' );
    function change_delivery_instructions_text( $instructions ) {
        return 'Your new text';
    }
    

    In both cases, change ‘Your new text’ with whatever you want it to say.

    • This reply was modified 4 years, 1 month ago by Scott DeLuzio. Reason: Added final instruction line to change 'Your new text' with whatever you want it to say
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘can i change the text Leave At Door to something else’ is closed to new replies.