Moving location of php the_title
I'm trying to make the area of my content pages which houses the page
title full width, so i can put an image back there, similar to this:
http://www.nielsen.com/us/en/newswire.html
I've tried to move the page-title div above the container on page.php, but
it always ends up back inside the container.
Here's an example of what I want moved on my site:
http://www.zachkeller.net/cp_site/?page_id=93
Here's my page.php code:
<?php get_header(); ?>
<!-- If there is no gallery, just grab the featured image -->
<?php if ( has_post_thumbnail() ) { ?>
<a class="featured-image" href="<?php the_permalink(); ?>"
title="<?php echo esc_attr( sprintf( __( 'Permalink to %s',
'okay' ), the_title_attribute( 'echo=0' ) ) ); ?>"
rel="bookmark"><?php the_post_thumbnail( 'large-image' );
?></a>
<?php } ?>
<div class="container-wrap">
<div class="container">
<div class="content">
<?php if ( have_posts() ) : while ( have_posts() )
: the_post(); ?>
<div class="blog-post clearfix">
<div class="blog-inside">
<div class="page-title">
<h1><?php the_title(); ?></h1>
</div>
<?php the_content(); ?>
</div><!-- blog inside -->
</div><!-- blog post -->
<?php endwhile; ?>
<?php endif; ?>
</div><!-- content -->
<?php get_sidebar(); ?>
</div><!-- container -->
</div><!-- container wrap -->
<?php get_footer(); ?>
No comments:
Post a Comment