Skip to content

Instantly share code, notes, and snippets.

@spivurno
Last active April 11, 2017 21:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save spivurno/0ec65dcedf974524bf90 to your computer and use it in GitHub Desktop.
Save spivurno/0ec65dcedf974524bf90 to your computer and use it in GitHub Desktop.
Gravity Perks // Gravity Forms Multi-page Navigation // Style Guide
/* style all page links */
.gpmpn-step-linked {
/* custom styles */
}
/* style current page/step */
.gpmpn-step-current {
/* custom styles */
}
<?php
/**
* Gravity Perks // GP Multi-page Navigation // Modify Frontend Labels
* http://gravitywiz.com/documentation/gravity-forms-multi-page-navigation/
*/
add_filter( 'gpmpn_frontend_labels', 'modify_gpmpn_frontend_labels', 10, 2 );
function modify_gpmpn_frontend_labels( $labels, $form ) {
$labels['backToLastPage'] = 'My Custom Button Label';
$labels['submit'] = 'Submit';
$labels['nextPageWithErrors'] = 'Next Page with Errors';
return $labels;
}
/**
* Gravity Perks // GP Multi-page Navigation // Add Submit Button on Last Page w/ Errors
* http://gravitywiz.com/documentation/gravity-forms-multi-page-navigation/
*/
add_filter( 'gpmpn_enable_submission_from_last_page_with_errors', '__return_true' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment