Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. <?php
  2.  
  3. // Enqueue styles
  4. wp_enqueue_style( 'front-styles', get_stylesheet_directory_uri() . '/style-front.css', array(), CHILD_THEME_VERSION );
  5.  
  6. /**
  7. * Add attributes for site-inner element, since we're removing 'content'.
  8. *
  9. * @param array $attributes Existing attributes.
  10. * @return array Amended attributes.
  11. */
  12. function be_site_inner_attr( $attributes ) {
  13. // Add a class of 'full' for styling this .site-inner differently
  14. $attributes['class'] .= ' full';
  15.  
  16. // Add the attributes from .entry, since this replaces the main entry
  17. $attributes = wp_parse_args( $attributes, genesis_attributes_entry( array() ) );
  18. return $attributes;
  19. }
  20. add_filter( 'genesis_attr_site-inner', 'be_site_inner_attr' );
  21.  
  22. // Header.
  23. get_header();
  24.  
  25. // Content.
  26. for ( $i = 1; $i <= 5; $i++ ) {
  27. genesis_widget_area( "front-page-{$i}", array(
  28. 'before' => '<div class="front-page-' . $i . ' front-page-section"><div class="wrap">',
  29. 'after' => '</div></div>',
  30. ) );
  31. }
  32.  
  33. // Comments.
  34. // genesis_get_comments_template();
  35.  
  36. // Footer.
  37. get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement