dane-m
10/17/2013 - 11:04 AM

Adds an ID attribute to the .main element in Genesis 2.0 HTML5. Useful for hooking into things like ajax post loaders and infinite scrollers

Adds an ID attribute to the .main element in Genesis 2.0 HTML5. Useful for hooking into things like ajax post loaders and infinite scrollers. #genesiswp #wpfilter

<?php
add_filter( 'genesis_attr_content', 'themename_attributes_content' );

function themename_attributes_content( $attributes ) {
  $attributes['id'] = 'primary-content';
	return $attributes;
}