• Hello All-
    I want to create a colored box where I post a new quote daily. The emphasis here is that I want it to be a colored box, like a sticky post looks—-but I don’t want the date, comments, category displayed. If you look at my site right now, you’ll see what I currently have but again just want the colored box and my quote. My site is http://www.agirlwithgoals.com. Thanks in advance for your help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Just put the quote in a box above the wordpress loop.

    Thread Starter cmund43

    (@cmund43)

    Please forgive my naiveness here, but do I have have to access the Main Index Template to do this or is this there an easier location?

    <div class="post-bodycopy clearfix"><p style="text-align: center;"><em>The person who gets the farthest is generally the one who is willing to do and dare. The sure-thing boat never gets far from shore.”<br /></em><b>–Dale Carnegie</b></p>
    </div>

    Add this in index.php right before <div class=”post-bodycopy clearfix”> begins in your theme.

    Thread Starter cmund43

    (@cmund43)

    Ok, here’s my index.php file. I don’t see exactly where you mean.

    <?php /* get all options: */
    include (TEMPLATEPATH . ‘/functions/bfa_get_options.php’);
    get_header(); ?>

    <?php /* If there are any posts: */
    if (have_posts()) : $bfa_ata[‘postcount’] == 0; /* Postcount needed for option “XX first posts full posts, rest excerpts” */ ?>

    <?php /* This outputs the next/previous post or page navigation.
    This can be edited at Atahualpa Theme Options -> Style & edit the Center column */
    bfa_center_content($bfa_ata[‘content_above_loop’]); ?>

    <?php /* The LOOP starts here. Do this for all posts: */
    while (have_posts()) : the_post(); $bfa_ata[‘postcount’]++; ?>

    <?php /* Add Odd or Even post class so post containers can get alternating CSS style (optional) */
    $odd_or_even = (($bfa_ata[‘postcount’] % 2) ? ‘odd-post’ : ‘even-post’ ); ?>

    <?php /* This is the actual WordPress LOOP.
    The output can be edited at Atahualpa Theme Options -> Style & edit the Center column */
    bfa_center_content($bfa_ata[‘content_inside_loop’]); ?>

    <?php /* END of the LOOP */
    endwhile; ?>

    <?php /* This outputs the next/previous post or page navigation and the comment template.
    This can be edited at Atahualpa Theme Options -> Style & edit the Center column */
    bfa_center_content($bfa_ata[‘content_below_loop’]); ?>

    <?php /* END of: If there are any posts */
    else : /* If there are no posts: */ ?>

    <?php /* This outputs the “Not Found” content, if neither posts, pages nor attachments are available for the requested page.
    This can be edited at Atahualpa Theme Options -> Style & edit the Center column */
    bfa_center_content($bfa_ata[‘content_not_found’]); ?>

    <?php endif; /* END of: If there are no posts */ ?>

    <?php bfa_center_content($bfa_ata[‘center_content_bottom’]); ?>

    <?php get_footer(); ?>

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Creating a colored box as a posting’ is closed to new replies.