2017-01-15 2 views

Antwort

0

Nachdem ich etwas mehr Zeit verbracht habe, habe ich es herausgefunden.

In Funktionen hinzufügen,

//* Add custom classes to posts 
add_filter('genesis_attr_entry', 'atp_post_class'); 
function atp_post_class($attributes) { 

    $attributes['class'] = 'col-md-4 ' . join(' ', get_post_class()); 

    if (! is_main_query() && ! genesis_is_blog_template()) { 
     return $attributes; 
    } 

    $attributes['itemscope'] = true; 
    $attributes['itemtype'] = 'http://schema.org/CreativeWork'; 

    return $attributes; 
} 
+0

'Attribute $ [ 'Klasse']' enthält bereits die Klasse String, so dass Sie Ihre Attribute Linie ändern könnte. '$ Attributes [ 'Klasse'] = 'COL- md-4 '; ' – jer0dh

Verwandte Themen