Jump to content

text color of rss feed


grucker

Recommended Posts

I use various rss feeds on several websites. Similar code is used for all feeds in seperate functions.On one particular site all but one feed are correct the other shows title and date correctly but the description shows with yellow text.

<code>function render_products_from_BATLEYRUGBYSMALL() {

if ($xml = simplexml_load_file(STORE_XML_BATLEYRUGBYSMALL_FILE))

{ $output = "<div>";

// sets loop to 0

$i = 0;

// starts looping through products

foreach ($xml->channel->item as $item) {

$output .= '

<p><a href="'. $item->link.'"><span style="color:#990000; font-size:1.4em;"> '. $item->title.'</span></a></p>

<div style=" background-color:#993333;"> <p style="color:#fff!important;">'. $item->description.'</p></div>

<p class="black" >'. $item->pubDate.'</p>

';

// checks the loop. If it's >= 2 (indicating that it's looped 3 times)...

if ($i >= 0){

// start new row

$output .= "</tr>";

// reset loop

$i = 0;

}

// if not, add one to the loop

else

$i++;

break;

}

// finishes table

$output .= '</div>';

return $output;

}

else

$output .= 'News cannot be displayed at this time.';

}

</code>

 

As I said this same code works finne with other feeds. How do I get the text to show #ffffff.

Here is the site to see what I mean. I had to change the background color to get it to show.

http: // dewsbury.actinic9.co.uk

Link to comment
Share on other sites

  • 2 months later...
Guest jini1

I looked through the style sheets but can't seem to find out how to change the color of the titles for the RSS feeds on my sidebar.

Edited by Andrea
Spam Link Deleted
Link to comment
Share on other sites

I looked through the style sheets but can't seem to find out how to change the color of the titles for the RSS feeds on my sidebar.

 

And without seeing your site or at least the code, neither can we.

 

It might be best if you start a new thread with your issue, explain it a little better, give us somehting to work with, and DON'T POST UNRELATED SPAM LINKS.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...