Change Child Entry Table Border Color

Change the top border color that appears for individual child entry tables in the {all_fields} and Nested Form field merge tags for Nested Form fields.

Code

Filename: gpnf-change-child-entry-table-border-color.php

<?php
/**
 * Gravity Perks // Nested Forms // Change Child Entry Table Border Color
 * https://gravitywiz.com/documentation/gravity-forms-nested-forms/
 *
 * Change the top border color that appears for individual child entry tables in the {all_fields} and Nested Form field
 * merge tags for Nested Form fields.
 */
add_filter( 'gp_template_output_nested-entries-all', function( $markup ) {
	// Replace top border color of individual child entry table in {all_fields}.
	$markup = str_replace( '#faebd2', '#f00', $markup );
	// Replace top border color of individual child entry table in Nested Form field merge tag.
	$markup = str_replace( '#d2e6fa', '#0f0', $markup );
	return $markup;
} );

Leave a Reply

Your email address will not be published. Required fields are marked *

  • Trouble installing this snippet? See our troubleshooting tips.
  • Need to include code? Create a gist and link to it in your comment.
  • Reporting a bug? Provide a URL where this issue can be recreated.

By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.