Viewing 0 reply threads
  • Author
    Posts
    • #7384
      dameer
      Member

      Hi!

      What am I doing wrong here:

      public function seps_text_field_custom_template( $templates ) {
      	
      	$templates[ 'seps_text_field_custom' ] = array(
      		'name' => esc_attr__( 'Text Field Custom', 'seps' ), 
      		'description' => esc_attr__( 'Custom Template for text field option.', 'seps' ), 
      		'template' => '[field_wrapper]
      			<div class="%1$s grid">
      			  <div class="grid__col grid__col--6-of-12">
      				[field_label]
      				[field]
      			  </div>
      			  <div class="grid__col grid__col--6-of-12">
      				  <p class="option-description-field">[field_description]</p>
      			  </div>
      			</div>
      		  [/field_wrapper]'
      	);
      	return $templates;
      	
      }

      My text field description is rendered out of wrapper (.option-description-field), on top of the “.grid”.

      Any advice?

Viewing 0 reply threads
  • You must be logged in to reply to this topic.