Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Plugins & Atahualpa »

Post Page Associator Plugin: Trying to Place Horizontal Gray Line in PHP


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Sep 28, 2011, 12:54 AM
agingbull
 
1 posts · Sep 2011
I am trying to use this plugin so that the title and excerpts of several articles appear on my pages. I added some code to place the author and date, and I inserted a horizontal gray line, but it is a different color than the gray line above it. The code I used for the gray line is:

<hr size="1" style="height:4px;" color="#eee" align="center"></hr>

The problem is, while I can get the size to change, the color does not change, and this gray is darker than the gray of the other horizontal lines throughout the site. Is there a way to get this sheet to add a horizontal gray line that matches the one used on all the other pages, and at the top of this page? In case it's relevant, I'll add the contents of the PHP page here. It calls up a title, thumbnail, and excerpt:


<?php


/*
PPA Template: Default Template
Description: This is the default Post Page Associator Template which fits the most template styles. It shows the title, an excerpt and a thumbnail for each associated post. Feel free to use it to create your own customization. You can find this template in the plugin folder.
Version: 1.0
Author: Dennis Hoppe
Author URI: http://DennisHoppe.de
*/


If ( $association_query = $this->get_associated_posts() ) : ?>
<div class="associated-posts">
<?php While ($association_query->have_posts()) : $association_query->the_post(); ?>
<div class="associated-post">
<h3 class="post-title">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title() ?></a>
</h3>
<div class="post-byline">by <?php the_author() ?>, <?php the_time('F jS, Y') ?></div>
<?php If ( $thumb = $this->get_post_thumbnail(get_the_id()) ) : ?>
<div class="thumb-frame">
<a href="<?php the_permalink(); ?>" title="<?php the_title() ?>">
<img src="<?php Echo $thumb[1] ?>"
width="<?php Echo $thumb[2] ?>"
height="<?php Echo $thumb[3] ?>"
alt="<?php the_title() ?>"
title="<?php the_title() ?>"
class="thumb post-preview-image alignleft" />
</a>
</div>
<?php EndIf; ?>

<div class="post-excerpt"><?php the_excerpt() ?></div>
<hr size="1" style="height:4px;" color="#eee" align="center"></hr>

<?php If ($thumb) : // In 99% of all cases we only need the clearer if we used a thumbnail image. ?>
<div class="clear"></div>
<?php EndIf; ?>
</div>
<?php EndWhile; ?>
</div>
<?php EndIf;
/* End of File */
  #2  
Old Sep 28, 2011, 04:21 AM
juggledad's Avatar
juggledad
 
21,705 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
What version of Atahualpa and WP?
What is your URL?
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Get rid of gray horizontal line under header image ellenfinkl Header configuration & styling 2 Dec 23, 2010 01:57 PM
[SOLVED] Horizontal white line appearing at top of every page. Tristan112 Center area post/pages 6 Nov 17, 2010 07:08 AM
[SOLVED] Extra Horizontal Line at Top of Post - What style or setting is creating thi mobius55 Center area post/pages 3 Nov 10, 2010 02:39 PM
Gray line above my widget WuGgaRoO Sidebars & Widgets 0 Jun 16, 2010 04:52 PM
Post-Page-Associator Plugin star_echo Plugins & Atahualpa 0 Feb 9, 2010 12:42 AM


All times are GMT -6. The time now is 08:42 AM.


Powered by vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.