I'm trying to wrap a div around two other div's. Inside those divs are wordpress functions.
For example:
- Home Display Div
- Home Display Left Div
- Wordpress function
- (close jhome left div)
- Home Display Right Div
- wordpress function
- (close home right div)
- Close Home Display Div
I already have the functions working correctly, but I'm trying to use the following code in my page template:
echo '<div class="home-display">';
function home_display_left() {
echo '<div class="wrap">';
genesis_widget_area( 'home-display-left', array(
'before' => '<div class="home-display-left">',
'after' => '</div></div>',
) );
}
function home_display_right() {
echo '<div class="wrap">';
genesis_widget_area( 'home-display-right', array(
'before' => '<div class="home-display-right">',
'after' => '</div></div>',
) );
echo '</div></div>';
}
echo '</div> ';
What's the correct code that I should be putting in my page template?