WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Twenty Eleven] Title to span across top of sidebar? (6 posts)

  1. bws-online
    Member
    Posted 2 years ago #

    How would I make the page titles span across the top of the sidebar as well? (I'm using a child of Twenty Eleven.)

    (Even if you can direct me to the areas to modify, that would be helpful. I'm guessing I need to modify the templates, but I'm just not sure exactly what to modify/which templates this would impact.)

    Thanks.

  2. faugro
    Member
    Posted 2 years ago #

    url please

  3. bws-online
    Member
    Posted 2 years ago #

    Sorry -- it's for a client site that's not live yet -- can't post.

    Can you direct me to the general areas that need to be addressed? Like let's say for this site: http://twentyelevendemo.wordpress.com/a-page-with-a-sidebar/

    How would you get a title (like "A Page With a Sidebar") to span across both that left section as well as the area above the right sidebar?

  4. faugro
    Member
    Posted 2 years ago #

    I not really understand about your question, sorry my english is not too good.

    open page.php

    move <div id="content"> below this code

    `<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

    <h2><?php the_title(); ?></h2>`

  5. bws-online
    Member
    Posted 2 years ago #

    Thanks, but that doesn't help -- my page.php doesn't have that -- it has this:

    <div id="content" role="main">
    <?php while ( have_posts() ) : the_post(); ?>
    <?php get_template_part( 'content', 'page' ); ?>
    <?php comments_template( '', true ); ?>
    <?php endwhile; // end of the loop. ?>
    </div><!-- #content -->

    I tried moving the <div> below that while, but that didn't help.

  6. bws-online
    Member
    Posted 2 years ago #

    Okay -- figured it out.

    Removed this from content-page.php:

    <header class="entry-header">
    <h1 class="entry-title"><?php the_title(); ?></h1>
    </header><!-- .entry-header -->

    And added this after <div id="primary"> in page.php:

    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    <header class="entry-header">
    <h1 class="entry-title"><?php the_title(); ?></h1>
    </header><!-- .entry-header -->

    Then played with the #secondary CSS styling to bump the sidebar down.

    I think that's everything I tweaked. :) (Just in case someone else is looking to do something similar.)

Topic Closed

This topic has been closed to new replies.

About this Topic