Last active
April 24, 2018 19:26
-
-
Save topleague/c575db05d6ca03b7172c9a8fa410205a to your computer and use it in GitHub Desktop.
Display Front Page Widgets in Business Theme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* Display Widgets on Front Page | |
add_action( 'genesis_after_header','genesischild_front_page_one' ); | |
function genesischild_front_page_one() { | |
if ( is_front_page() ) | |
genesis_widget_area ('featured-background-1', array( | |
'before' => '<div class="featured-background-1"><div class="wrap">', | |
'after' => '</div></div>', | |
) ); | |
} | |
add_action( 'genesis_after_header','genesischild_front_page_two' ); | |
function genesischild_front_page_two() { | |
if ( is_front_page() ) | |
genesis_widget_area ('featured-background-2', array( | |
'before' => '<div class="featured-background-2"><div class="wrap">', | |
'after' => '</div></div>', | |
) ); | |
} | |
add_action( 'genesis_after_header','genesischild_front_page_three' ); | |
function genesischild_front_page_three() { | |
if ( is_front_page() ) | |
genesis_widget_area ('featured-background-3', array( | |
'before' => '<div class="featured-background-3"><div class="wrap">', | |
'after' => '</div></div>', | |
) ); | |
} | |
add_action( 'genesis_after_header','genesischild_front_page_four' ); | |
function genesischild_front_page_four() { | |
if ( is_front_page() ) | |
genesis_widget_area ('featured-background-4', array( | |
'before' => '<div class="featured-background-4"><div class="wrap">', | |
'after' => '</div></div>', | |
) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment