Jump to content

Recommended Posts

Posted

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

Posted

Look at the css carefully:

 

<div style=" background-color:#993333;"> <p style="color:#fff!important;">'

 

You need a space between the color code and the exclaimation point.

 

<div style=" background-color:#993333;"> <p style="color:#fff !important;">'

  • 2 months later...
Guest jini1
Posted (edited)

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
Posted

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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...