Skip to content

Instantly share code, notes, and snippets.

@jacobwise
Last active August 29, 2015 14:14
Show Gist options
  • Select an option

  • Save jacobwise/d4f2d2b6feaa19425483 to your computer and use it in GitHub Desktop.

Select an option

Save jacobwise/d4f2d2b6feaa19425483 to your computer and use it in GitHub Desktop.

Revisions

  1. jacobwise revised this gist Jan 29, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Add Class to Genesis Entry
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@ function jw_entry_content_class( $attributes ) {

    if ( is_tax( $taxonomy ) )

    $attributes['class'] .= ' show-entry';
    $attributes['class'] .= $class_to_add;
    return $attributes;
    }
    add_filter( 'genesis_attr_entry', 'jw_entry_content_class' );
  2. jacobwise revised this gist Jan 29, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Add Class to Genesis Entry
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@
    */
    function jw_entry_content_class( $attributes ) {

    if ( is_tax( 'precast_product_category' ) )
    if ( is_tax( $taxonomy ) )

    $attributes['class'] .= ' show-entry';
    return $attributes;
  3. jacobwise created this gist Jan 29, 2015.
    12 changes: 12 additions & 0 deletions Add Class to Genesis Entry
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    /**
    * Add and extra class to the entry-content div
    *
    */
    function jw_entry_content_class( $attributes ) {

    if ( is_tax( 'precast_product_category' ) )

    $attributes['class'] .= ' show-entry';
    return $attributes;
    }
    add_filter( 'genesis_attr_entry', 'jw_entry_content_class' );