• I have been making css changes to an existing site (using the existing theme pink-orchid) and have it just the way I and the client want. The problem is with the blog page. The formatting is wrong and the posts show up wrong. When I checked the page (downloading it and viewing an actual html page), the posts are outside of the “content” of the page. If I copy and past the posts inside of the content, the page looks normal. I am a designer – not a programmer, so I don’t play with the coding of php files. But I’m thinking that the code is not right for the posts. Can anyone help?
    The site is https://www.imagerymeditation.com and the blog page is https://www.imagerymeditation.com/energy-meditation/

Viewing 3 replies - 1 through 3 (of 3 total)
  • You will have an extra closing </div> somewhere that is causing the problem. I am guessing that it will be just above the 2 <br /> tags you have.

    Open your template file being used to display this blog page (probably index.php) and then try to find it in here.

    Thread Starter tahoekerri

    (@tahoekerri)

    Thanks! I found it, and now the background is there, but now I have formatting issues still. Is there anyway to get the blog to be inside the content, to follow those rules?

    Thread Starter tahoekerri

    (@tahoekerri)

    Here is the content for page.php:

    <?php get_header(); ?>

    <div id=”content”>

    <?php if (have_posts()) : ?>

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

    <div class=”post”>

    <h1><?php the_title(); ?></h1>

    <?php edit_post_link(); ?>

    <?php the_content(); ?>

    </div>

    <?php endwhile; ?>
    <?php else : ?>
    <p><?php _e(‘Sorry, but nothing seems to match what you were looking for.’); ?></p>
    <?php endif; ?>

    </div><!–/content–>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

    And the content for index.php:
    <?php get_header(); ?>

    <div id=”content”>

    </div>

    <p class=”blog_title”>Dr. Carol’s Blog: the mind-body connection</p>
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <div <?php post_class(); ?>>
    <div class=”post”>
    <h1>” title=”Permanent Link to <?php the_title(); ?>”>
    <?php the_title(); ?>
    </h1>
    <?php edit_post_link(); ?>
    <?php if(is_category() || is_archive()) {

    the_excerpt();

    } else {

    the_content();

    } ?>
    <div class=”postmeta”>
    <?php if(function_exists(‘the_ratings’)) { the_ratings(); } ?>
    <!–

    <b>Filed Under:</b> <?php the_category(‘, ‘) ?> –>
    <p class=”small”><b>Posted by</b>
    <?php the_author(); ?>
    on
    <?php the_date(); ?>
    </p>
    <b>Comments:</b>
    <?php comments_popup_link(‘Be the First to Comment’, ‘Read the First Comment’, ‘% Comments to Read’, ‘comments-link’, ‘Comments are off for this article’); ?>

    <!– <?php if ( function_exists(‘the_tags’)) the_tags(‘<h4>Tags: <span>’, ‘, ‘, ‘ </span></h4>’); ?> –>
    <?php comments_template(); ?>
    </div>
    </div>
    </div>
    <?php endwhile; ?>
    <?php else : ?>
    <p>
    <?php _e(‘Sorry, no posts matched your criteria.’); ?>
    </p>
    <?php endif; ?>
    <div class=”content-bot”>
    <?php next_posts_link(‘« previous’) ?>
    top
    <?php previous_posts_link(‘next »’) ?>
    </div>
    <!–/content-bot–>
    </div>
    <!–/content–>
    <?php get_sidebar(); ?>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Blog page formatting wrong’ is closed to new replies.