Skip Navigation

[Resolved] post field group change “add new” button text

This thread is resolved. Here is a description of the problem and solution.

Problem:
Want to change "Add New" button text in back-end postlink for repeating image field.
Solution:
Installed this plugin to add custom JS:
https://wordpress.org/plugins/custom-css-js

jQuery(document).ready(function( $ ){
        $("a[data-wpt-id=wpcf-cover_image]").html('Add New Image');
$("a[data-wpt-id=wpcf-title]").html('Add New Title');
    $("a[data-wpt-id=wpcf-description]").html('Add New Description');
});

You can update field slug (cover_image, title, description ) and messages to according to your fields.
Relevant Documentation:

This support ticket is created 6 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 -
- 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by WayneM2821 6 years, 10 months ago.

Assisted by: Noman.

Author
Posts
#615860
add-new-button.png

Tell us what you are trying to do?

When I add a field to a Post Field Group and specify "Allow multiple-instances of this field", the result is a submit button with the text "Add New".

The admin users this site is for are not particularly computer savvy.

Is their a way to change the submit button text to something more informative, eg "Add new Image", etc?

#615969

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Wayne,

Thank you for contacting Toolset support. Installed this plugin to add custom JS:
https://wordpress.org/plugins/custom-css-js

jQuery(document).ready(function( $ ){
    	$("a[data-wpt-id=wpcf-cover_image]").html('Add New Image');
$("a[data-wpt-id=wpcf-title]").html('Add New Title');
  	$("a[data-wpt-id=wpcf-description]").html('Add New Description');
});

You can update field slug (cover_image, title, description ) and messages to according to your fields.

Thank you

#616188

Worked well. Thank you