This is my first HTML to WordPress conversion that I am doing for a bakery. I’ve attempted to trouble shoot with the wordpress codex and forums with non-successful responses.
The following scenarios are for a full-width page. I’m sure it’s something simple (I could be wrong) but I’m not seeing it.
Scenario 1: When I type the text alone, the alignment works just fine but, the return key between paragraphs will not separate the paragraphs like it should
Scenario 2: The image alignment to the right moves only 1 sentence line next to the picture and the rest below it.
Scenario 3: When inserting an image or a table, everything moves out of the designated container (div) and losing the style set to it.
http://www.treunorth.com/pennycakes/about/
Is there a line of code I need to add to the ‘page-full.php’ or adjust the css to make this work?
page-full.php:
<?php /* Template Name: Page - Full Width */ ?>
<?php get_header(); ?>
<!-- Page Article -->
<div class="clear"></div>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<section id="story" class="container_16 clearfix">
<div class="story-top grid_16"></div>
<div class="story grid_16">
<h1 class="meander"><?php the_title(); ?></h1>
<p class="m500">
<?php if (have_posts()) : while (have_posts()) : the_post();?>
<?php the_content(); ?>
<?php wp_link_pages(); ?>
<?php edit_post_link( __( 'Edit', 'pennycakes' ), '<span class="edit-link">', '</span>' ); ?>
<?php endwhile; endif; ?>
</p><!-- .entry-content -->
</div>
<div class="story-bottom grid_16"></div>
</section>
</article><!-- #post-<?php the_ID(); ?> -->
<div class="clear"></div>
<!-- //Page Article -->
<?php get_footer(); ?>
Stylesheet:
.container_16 .grid_16 {
width: 972px;
}
/*--------------------------------
9) STORY
--------------------------------*/
#story { margin-top: 30px; }
.story-top { background: url('../css/images/bg-full-top.png') no-repeat center top; height: 30px; }
.story { background: url('../css/images/bg-full.png') repeat-y center top;}
.story h1 { font-size: 64px; color: #BF4A72; text-align: center; padding: 15px 0;}
.story p { font-size: 13px; color: #73656e; line-height: 19px; padding: 0 42px 0 42px; }
.story p.signature { background-position: 0 -949px; font-size: 26px; line-height: 51px; margin-bottom: 20px; margin-left: 42px; margin-top: 24px;}
.story-bottom { background: url('../css/images/bg-full-bottom.png') no-repeat center top; height: 31px;}
The table has no width, neither has the cells in it. So styling it is not easy…
The paragraph tag has some styles also. Like a line height of 19px f.x and more.
Also most styles isn’t inherited from the div to a table that is in it. You need to ad some styles to the table also.