Support

Account

Home Forums Feature Requests Simple Request – Row Dividers

Solved

Simple Request – Row Dividers

  • This is a super-simple request. On the backend, make the line that divides the rows of date field areas in a repeater a darker color. Just enough to make each repeater area very obvious.

    I tried to do this via the “acf_admin_head” function:

    <?php function my_acf_field_group_admin_head() {?>
    	<style type="text/css">
    		.acf-row{
    			border-top:1px solid #000;
    		}
    	</style>
    	<?php
    }
    add_action('acf/field_group/admin_head', 'my_acf_field_group_admin_head');
    ?>

    But it is not working and I really don’t have the time to fiddle more with it.

  • for block and row layouts

    
    .acf-repeater.-row > table > tbody > tr+tr > td,
    .acf-repeater.-block > table > tbody > tr+tr > td {
      border-top-color: #000;
    }
    
  • You’ve also go the wrong hook

    
    <?php 
      
      function acf_mod_styles() {
        ?>
          <style type="text/css">
            .acf-repeater.-row>table>tbody>tr+tr>td,
            .acf-repeater.-block>table>tbody>tr+tr>td {
              border-top-color: #a8a8a8; // about twice as dark
            }
          </style>
        <?php
      }
      add_action('acf/input/admin_head', 'acf_mod_styles');
      
    ?>
    
  • Thanks! That works perfectly!

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Simple Request – Row Dividers’ is closed to new replies.