Separate text from content

  • Author
    Posts
  • #439396

    nicoplay2
    Member

    Hello

    I am creating a website which i need to have my text separated from the image. I now have my single.php with two boxes, one for text and the other one for an image (using lightbox gallery). The problem is that the code I have right now does not allow me to separate the image and text.

    This is the code I have:

    BOX 1
    <div class=”img-work”>

    HERE IS WHERE I WANT THE IMG.

    </div>

    BOX 2
    <div class=”text-work”>

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

    <p><?php the_content(); ?></p>

    </div>
    ———————————————-

    I have an image and text in the contet and that is why both appear in the same box. I dont really want to use custom fields to separate them.

    Is there any other way??

    Many thanks

    #439509

    supportbot
    Member

    You did not specify a blog address or reason for posting when you created this topic.

    This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.

    If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.

    This is an automated message.

The topic ‘Separate text from content’ is closed to new replies.