Añadir clases a los elementos de la plantilla

Contactar con el profesor

add_filter( 'genesis_attr_title-area', function( $attributes ) {
	$attributes['class'] = $attributes['class']. ' col-4';
    return $attributes;
});

Elementos disponibles para añadir clases:

genesis_attr_head
genesis_attr_body
genesis_attr_site-header
genesis_attr_site-title
genesis_attr_site-description
genesis_attr_header-widget-area
genesis_attr_breadcrumb
genesis_attr_breadcrumb-link-wrap
genesis_attr_search-form
genesis_attr_nav-primary
genesis_attr_nav-secondary
genesis_attr_nav-header
genesis_attr_nav-link-wrap
genesis_attr_nav-link
genesis_attr_structural-wrap
genesis_attr_content
genesis_attr_taxonomy-archive-description
genesis_attr_author-archive-description
genesis_attr_cpt-archive-description
genesis_attr_date-archive-description
genesis_attr_blog-template-description
genesis_attr_posts-page-description
genesis_attr_entry
genesis_attr_entry-image
genesis_attr_entry-image-widget
genesis_attr_entry-image-grid-loop
genesis_attr_entry-author
genesis_attr_entry-author-link
genesis_attr_entry-author-name
genesis_attr_entry-time
genesis_attr_entry-modified-time
genesis_attr_entry-title
genesis_attr_entry-content
genesis_attr_entry-meta-before-content
genesis_attr_entry-meta-after-content
genesis_attr_archive-pagination
genesis_attr_entry-pagination
genesis_attr_adjacent-entry-pagination
genesis_attr_comments-pagination
genesis_attr_entry-comments
genesis_attr_comment
genesis_attr_comment-author
genesis_attr_comment-author-link
genesis_attr_comment-time
genesis_attr_comment-time-link
genesis_attr_comment-content
genesis_attr_author-box
genesis_attr_sidebar-primary
genesis_attr_sidebar-secondary
genesis_attr_site-footer
genesis_attr_site-inner
genesis_attr_content-sidebar-wrap
genesis_attr_nav-footer
genesis_attr_jumbotron-header
genesis_attr_widget
← Programación de Widgets para Wordpress
Añadir bootstrap a la plantilla de Genesis →

Aviso Legal | Política de privacidad