Split sidebars

This topic is: resolved

This topic contains 3 replies, has 3 voices, and was last updated by  notfarnow 1 year, 11 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3958

    alliechynna
    Participant
    Post count: 69

    Please can someone tell me why my split sidebars are not showing.

    http://21ststreetdesigns.com

    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’ ),
    ) );

    #3979

    AC
    Blocked
    Post count: 7712

    Did you edit your Style.css file to accommodate the split sidebars?

    #4043

    alliechynna
    Participant
    Post count: 69

    Thanks had miss a bit of css

    #5310

    notfarnow
    Participant
    Post count: 18

    Can you post what you were missing please so we can learn? Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Split sidebars’ is closed to new replies.