Forums

Creating a colored box as a posting (5 posts)

  1. cmund43
    Member
    Posted 2 years ago #

    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!

  2. thetvstop
    Member
    Posted 2 years ago #

    Just put the quote in a box above the wordpress loop.

  3. cmund43
    Member
    Posted 2 years ago #

    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?

  4. thetvstop
    Member
    Posted 2 years ago #

    <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.

  5. cmund43
    Member
    Posted 2 years ago #

    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(); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags