TheHorse.com logo
News and veterinarian-approved articles on
equine health care from The Horse magazine.
Sign In or Create a Login
for access to 12,300+ articles

TheHorse.com RSS Styling Guide

Customizing TheHorse.com Feed Appearance

Styling with Cascading Style Sheets

The script that TheHorse.com provides for syndication is marked up with id and class attributes, providing you with plenty of options for styling your syndicated feed using Cascading Style Sheets.

Below you will find an example of how the TheHorse.com News feed is marked up.
<div class="feedburnerFeedBlock" id="TheHorse/News548024">
<p class="feedTitle">TheHorse.com RSS Feed Title</p>
<ul>
<li>
<span class="headline"><a href="#">First item headline here</a></span>
<p class="date">Dec 31, 2006</p>
<div>TheHorse.com Article Summary goes here. Aliquam delenit enim nostrud autem velit eum aliquip lobortis consectetuer eum volutpat vero autem et. Tincidunt consequat illum quis suscipit dolor nonummy in dolore.</div>
</li>
</ul>
<div id="creditfooter"><a href="http://www.feedburner.com" target="_blank">
<img src="http://www.feedburner.com/fb/images/buzzboost-pwrd.gif" alt="Headlines by FeedBurner" /></a>
</div>
</div>

Questions? Comments? Contact us at RSS@TheHorse.com.

Overriding TheHorse.com Feed Settings

It’s possible to override the settings of the script to display or disable certain features. Simply take the snippet provided for the feature you wish to modify and place it at the end of the "src" attribute in the <script> tag (make sure you leave the quotations, though). If you want to make multiple overrides, just keep adding the snippets to the end of the "src" attribute. If you are confused about where to put the snippets, an example of the <script> tag is provided for each override.

Override: Insert Snippet: Example <script> tag:
Set the number of articles displayed

&nItems=*

*Insert number of articles desired

<script language="JavaScript" src="http://feeds.thehorse.com/TheHorse/News?format=sigpro&nItems=5" type="text/javascript"></script>
Remove article summary &displayExcerpts=false <script language="JavaScript" src="http://feeds.thehorse.com/TheHorse/News?format=sigpro&displayExcerpts=false" type="text/javascript"></script>
Remove the date of the article &displayDate=false <script language="JavaScript" src="http://feeds.thehorse.com/TheHorse/News?format=sigpro&displayDate=false" type="text/javascript"></script>
Change the location of the date to below the summary. &dateLocation=below <script language="JavaScript" src="http://feeds.thehorse.com/TheHorse/News?format=sigpro&dateLocation=below" type="text/javascript"></script>
Change the date format

&dateFormat=*

*Possible Settings:

  • MM/dd/yyyy
  • MMM d, yyyy
  • MMM d yyy
  • d/M/yyyy
  • M/d/yyyy
  • MMMM d, yyyy
<script language="JavaScript" src="http://feeds.thehorse.com/TheHorse/News?format=sigpro&dateFormat=MM/dd/yyyy" type="text/javascript"></script>
Example of multiple overrides: <script language="JavaScript" src="http://feeds.thehorse.com/TheHorse/News?format=sigpro&displayDate= false&displayExcerpts=false" type="text/javascript"></script>

Questions? Comments? Contact us at RSS@TheHorse.com.

 



Marketplace links
BOOKS & VIDEOS
Exclusively Equine
HEALTH CARE PRODUCTS & SUPPLEMENTS
JeffersEquine.com
Well-Horse
HOOF CARE
Keratex Equine Hoofcare
Nanric Inc. Equine Podiatry
TACK & EQUIPMENT
JeffersEquine.com

Readers are cautioned to seek the advice of a qualified veterinarian
before proceeding with any diagnosis, treatment, or therapy.

Copyright © 2008 BLOOD-HORSE PUBLICATIONS. All rights reserved. Reproduction in whole or in part in any form
or medium without written permission of BLOOD-HORSE PUBLICATIONS is prohibited. THE HORSE, THE HORSE logo,
THEHORSE.COM and THEHORSE.COM logo are trademarks of BLOOD-HORSE PUBLICATIONS.