• Hi,
    the problem acourse when i give left, right aligment to the image. The pic goes of the content of page.

    I am using such code in my page tamplate:

    <? get_header(); ?>

    <div class=”content”>
    <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>

    <?php if ( is_front_page() ) { ?>
    <h2><?php the_title(); ?></h2>
    <?php } else { ?>
    <h1><?php the_title(); ?></h1>
    <?php } ?>
    <p class=”text”><?php the_content(); ?></p>
    <?php endwhile; ?>
    </div>

    </div>

    <?php get_footer(); ?>

    Take a look how it looks:

    https://www.damian.it.pl

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘img goes of the content while using aligment’ is closed to new replies.