Advertisement
srikat

Untitled

Apr 27th, 2015
505
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.45 KB | None | 0 0
  1. add_filter( 'genesis_attr_site-inner', 'sk_attributes_site_inner' );
  2. /**
  3.  * Add attributes for site-inner element.
  4.  *
  5.  * @since 2.0.0
  6.  *
  7.  * @param array $attributes Existing attributes.
  8.  *
  9.  * @return array Amended attributes.
  10.  */
  11. function sk_attributes_site_inner( $attributes ) {
  12.  
  13.     $attributes['role']     = 'main';
  14.     $attributes['itemprop'] = 'mainContentOfPage';
  15.     $attributes['id'] = 'genwpacc-genesis-content';
  16.  
  17.     return $attributes;
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement