• Resolved footballmaestro25

    (@footballmaestro25)


    Hey,

    I want to customize the options for filling in the title for a petition. How can I do that?

    Looking forward to hear from you.

    Kind regards,

    Floris

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author 123host

    (@123host)

    Can you be more specific? I don’t understand what you are wanting to do.

    Thread Starter footballmaestro25

    (@footballmaestro25)

    When someone wants to sign the petition, you have 6 options from the dropdownlist “Title” (Mr, Mrs etc). I want to customize those options.

    Plugin Author 123host

    (@123host)

    Thanks for the clarification.

    Here are the instructions to make this change, however your changes may be over-written every time I update the plugin and this file is included in the update – which is often as it is one of the important files.

    Open the file wp-content/plugins/speakout/includes/emailpetition.php and scroll down to line 113 where you will find the following code:

    // do we display honorific?
    	if ( $options['display_honorific'] == 'enabled' ) {
    		$petition_form .='    <div class="dk-speakout-full">
    		<label for="dk-speakout-honorific-' . $petition->id . '" class="required">' . __( 'Title', 'speakout' ) . '</label>&nbsp;&nbsp;
                       <select name="dk-speakout-honorific" id="dk-speakout-honorific-' . $petition->id . '">
                            <option value="' . __( 'Ms', 'speakout' ) . '">' . __( 'Ms', 'speakout' ) . '</option>
                            <option value="' . __( 'Mr', 'speakout' ) . '">' . __( 'Mr', 'speakout' ) . '</option>
                            <option value="' . __( 'Mrs', 'speakout' ) . '">' . __( 'Mrs', 'speakout' ) . '</option>
                            <option value="' . __( 'Miss', 'speakout' ) . '">' . __( 'Miss', 'speakout' ) . '</option>
    			<option value="' . __( 'Mx.', 'speakout' ) . '">' . __( 'Mx.', 'speakout' ) . '</option>
    			<option value="' . __( 'Dr.', 'speakout' ) . '">' . __( 'Dr.', 'speakout' ) . '</option>
    									  
                      </select>
    		</div>';
    	}

    You should see the pattern there. You can add or remove options however they won’t be included in the language file if you aren’t using English.

    If you have an option you think ought to be included permanently, feel free to offer it as a suggestion

    Plugin Author 123host

    (@123host)

    Nothing heard, marking this resolved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘SpeakOut Customize Title-Dropdown in Petition URGENT!’ is closed to new replies.