2017-01-15 1 views

ответ

0

Проведя еще некоторое время, я понял это.

В функции добавить,

//* 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

атрибуты '$ [ 'класс'] 'уже содержит строку класса, чтобы вы могли изменить атрибуты строки в:.' $ Атрибутов [ 'класс'] =' коллектив- мкр-4' ; ' – jer0dh