Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

Old Sep 28, 2011, 12:54 AM
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:


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>
<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" />
<?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; ?>
<?php EndWhile; ?>
<?php EndIf;
/* End of File */
Old Sep 28, 2011, 04:21 AM
juggledad's Avatar
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
What version of Atahualpa and WP?
What is your URL?
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support


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 11:12 PM.

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