Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- add_filter( 'genesis_attr_site-inner', 'sk_attributes_site_inner' );
- /**
- * Add attributes for site-inner element.
- *
- * @since 2.0.0
- *
- * @param array $attributes Existing attributes.
- *
- * @return array Amended attributes.
- */
- function sk_attributes_site_inner( $attributes ) {
- $attributes['role'] = 'main';
- $attributes['itemprop'] = 'mainContentOfPage';
- return $attributes;
- }
- // Remove div.site-inner's div.wrap
- add_filter( 'genesis_structural_wrap-site-inner', '__return_empty_string' );
- // Display header
- get_header();
- // Content
- // Display Page Title and Content coming from WP editor
- // echo '<div class="home-section page-content">';
- // genesis_standard_loop();
- // echo '</div>';
- global $post;
- // $content = $post->post_content;
- // if( $content ) {
- // echo wpautop( $content );
- echo apply_filters( 'the_content', $post->post_content );
- // }
- // Display Footer
- get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement