Forums

Extending and dividing the main content body (6 posts)

  1. Soprano
    Member
    Posted 3 years ago #

    Hi,

    I've been trying to edit a theme for the last couple of days but with no luck, I'm using this theme:

    http://notepad.ithemes.com/

    on my site:

    http://valour-international.com/wordpress/

    what I wanted to do is extend the Home content box of the site so I can split it up into two boxes and divide it with a gold line, the left side for news and the right side for the welcome message.I was thinking perhaps I could use tables or something to create 3 tables 30% for news 5% for golden separation line and 65% for main welcome content but idk how to do that.This is my index.php file:

    <?php get_header(); ?>
    <div id="content"><!--index.php-->
    <?php $my_query = "showposts=5"; $my_query = new WP_Query($my_query); ?>
    <?php if ($my_query->have_posts()) : while ($my_query->have_posts()) : $my_query->the_post(); ?>
    <!--post title as a link-->
    <h3 id="post-<?php the_ID(); ?>">" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></h3>
    <!--post text with the read more link-->
    <?php the_content('<div class="post-more">Read the rest of this entry »</div>'); ?>
    <?php endwhile; // end of one post ?>
    <?php else : // do not delete ?>
    <h3>Page Not Found</h3>
    <p>We're sorry, but the page you are looking for isn't here.</p>
    <p>Try searching for the page you are looking for or using the navigation in the header or sidebar</p>
    <?php endif; //end of loop ?>
    <!--index.php end-->
    </div>

    <div style="text-align: center;"><p>"Dont be afraid to give up the good to go for the great." - John D Rockefeller.</p></div>

    <!--include footer-->
    <?php get_footer(); ?>

    Any help is greatly appreciated :)

  2. bekabug
    Member
    Posted 3 years ago #

    Don't use a table...use a div.

    Don't know if the welcome text is a post or a page. Would make a pretty significant difference in how you are going to be approaching the rest of it.

    In my travels it has involved using WP_Query and Templates.

    Good luck :)

  3. bekabug
    Member
    Posted 3 years ago #

    Er. I really hate that you don't get a preview before posting...

    http://codex.wordpress.org/Function_Reference/WP_Query

  4. Soprano
    Member
    Posted 3 years ago #

    thanks for replying :D

    I believe the theme is using a post and the welcome message :), what kind of div code would I use together with WP_Query to obtain the result a table tag would provide?

  5. Soprano
    Member
    Posted 3 years ago #

    sorry I meant "using a post AS the welcome message", they need to add an edit feature to these forums :(.

  6. bekabug
    Member
    Posted 3 years ago #

    http://notepad.ithemes.com/

    Is this the theme you're using?

Topic Closed

This topic has been closed to new replies.

About this Topic