Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Main-Content v.s. Sidebar Spacing Issues

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #36256
    smithaa99
    Member

    Hey, I had posted about this a while back.
    I’ve been working on this site for a bit – http://www.onedollaronebrick.org

    – My client has requested that I make a separate template for the first page so the main content area and the sidebar are not as tall/long.

    I achieved that with the main content area, but had tried pasting in the code I had in the sidebar.php file, in place of get_sidebar(), and it makes 2 duplicate sidebars instead of 1 static sidebar.

    I want to set a custom div for the sidebar in the index, so that it becomes shorter.

    I have already enabled a JS script that makes both the main-content and the sidebar’s heights equal to eachother, so that’s not the issue, the dynamic PHP stuff is.

    It has been suggested that the function is being called twice. I just can’t figure out *where* it’s being called twice.

    Your help would be greatly appreciated!

    Thanks!
    Adam

    #95177
    smithaa99
    Member

    The index page:

    
    /*
    Template Name: One Dollar, One Brick: Home
    */

    get_header(); ?>


    All It Takes Is One Dollar.









    '' . __( 'Pages:', 'twentyten' ), 'after' => '' ) ); ?>









    Help Us Help The

    People of Nuqui





    $args = array( 'numberposts' => 10, 'order'=> 'ASC', 'orderby' => 'title' );
    $postslist = get_posts( $args );
    foreach ($postslist as $post) : setup_postdata($post); ?>













    // A second sidebar for widgets, just because.
    if ( is_active_sidebar( 'secondary-widget-area' ) ) : ?>





    #95178
    smithaa99
    Member

    The sidebar page:




Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.