Modifying Genesis Attributes

List of available attributes: Click here

Add Style:

<?php
add_filter( 'genesis_attr_entry-header', 'wd_project_entry_header' );
function wd_project_entry_header( $attributes ) {

     // Add custom background color to entry header
     $wd_project_highlight_color = get_field( 'wd_project_highlight_color', get_the_ID() );
     if ( ! empty( $wd_project_highlight_color ) ) {
          $attributes['style'] = 'border-top: 5px solid ' . $wd_project_highlight_color;
     }

     return $attributes;
}

Add Class:

<?php
// add_filter( 'genesis_attr_entry-header', 'wd_project_entry_header' );
function wd_project_entry_header( $attributes ) {

     // Add custom background color to entry header
     $attributes['class'] .= ' class-name';
	
     return $attributes;
}