Community Forums › Forums › Design Tips and Tricks › Split sidebars
Tagged: split sidebars
This topic contains 3 replies, has 3 voices, and was last updated by notfarnow 6 months ago.
-
AuthorPosts
-
December 9, 2012 at 5:12 am #3958
Please can someone tell me why my split sidebars are not showing.
Here is my PHP
<?php
/** Start the engine */
require_once( get_template_directory() . ‘/lib/init.php’ );/** Child theme (do not remove) */
define( ‘CHILD_THEME_NAME’, ‘Sample Child Theme’ );
define( ‘CHILD_THEME_URL’, ‘http://www.studiopress.com/themes/genesis’ );/** Add Viewport meta tag for mobile browsers */
add_action( ‘genesis_meta’, ‘add_viewport_meta_tag’ );
function add_viewport_meta_tag() {
echo ‘<meta name=”viewport” content=”width=device-width, initial-scale=1.0″/>’;
}/** Add support for custom background */
add_custom_background();/** Add support for custom header */
add_theme_support( ‘genesis-custom-header’, array( ‘width’ => 960, ‘height’ => 100 ) );/** Add support for 3-column footer widgets */
add_theme_support( ‘genesis-footer-widgets’, 3 );/** Add home top widget area */
add_action( ‘genesis_before_loop’, ‘blissful_home_top’ );
function blissful_home_top() {
dynamic_sidebar( ‘home-top’ );
}add_action( ‘genesis_after_sidebar_widget_area’, ‘blissful_split_sidebars’ );
/**
* Add split sidebars underneath the primary sidebar
*/
function blissful_split_sidebars() {
foreach ( array( ‘sidebar-split-left’, ‘sidebar-split-right’, ‘sidebar-split-bottom’ ) as $area ) {
echo ‘<div class=”‘ . $area . ‘”>’;
dynamic_sidebar( $area );
echo ‘</div><!– end #’ . $area . ‘–>’;
}
}
/** Register widget areas */
genesis_register_sidebar( array(
‘id’ => ‘home-top’,
‘name’ => __( ‘Home Top’, ‘blissful’ ),
‘description’ => __( ‘This is the top section of the homepage’, ‘blissful’ ),
) );
genesis_register_sidebar( array(
‘id’ => ‘sidebar-split-left’,
‘name’ => __( ‘Sidebar Split Left’, ‘blissful’ ),
‘description’ => __( ‘This is the left side of the split sidebar’, ‘blissful’ ),
) );
genesis_register_sidebar( array(
‘id’ => ‘sidebar-split-right’,
‘name’ => __( ‘Sidebar Split Right’, ‘blissful’ ),
‘description’ => __( ‘This is the right side of the split sidebar’, ‘blissful’ ),
) );
genesis_register_sidebar( array(
‘id’ => ‘sidebar-split-bottom’,
‘name’ => __( ‘Sidebar Split Bottom’, ‘blissful’ ),
‘description’ => __( ‘This is the bottom of the split sidebar’, ‘blissful’ ),
) );December 9, 2012 at 6:17 am #3979Did you edit your Style.css file to accommodate the split sidebars?
Need customization services or other help? Visit me here: Cre8tiveDiva.com | Twitter: @thecre8tivediva
Why Not Take The Challenge! – Help us answer some of the unanswered postsDecember 9, 2012 at 4:13 pm #4043Thanks had miss a bit of css
December 14, 2012 at 6:46 pm #5310Can you post what you were missing please so we can learn? Thanks!
-
AuthorPosts
You must be logged in to reply to this topic.