Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-03-31 01:03:19

camello
Member
From: Lisbon
Registered: 2006-01-15
Posts: 63
Website

I want to put the rss logo instead of label="RSS"

Hi

I want to put the rss logo instead of label=“RSS” .

Now it goes like this :

<code> <txp:feed_link label=“RSS” category=“news” section=“article” flavor=“rss” wraptag=“p”/> </code>

<p> What can I change to display the rss logo instead of the label ?

Thanks

Offline

#2 2006-03-31 03:39:41

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: I want to put the rss logo instead of label="RSS"

<code><txp:feed_link label=”“ category=“news” section=“article” flavor=“rss” wraptag=“p”/></code>

regards, marios


⌃ ⇧ < ⌃ ⇧ >

Offline

#3 2006-03-31 04:13:35

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: I want to put the rss logo instead of label="RSS"

Uh, that won’t/doesn’t work…

Offline

#4 2006-03-31 07:51:25

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: I want to put the rss logo instead of label="RSS"

  1. Download and extract the rss feed icons
  2. Upload one of them via FTP or textpattern
  3. In your page template or wherever you’re putting the icon, link to it (leave all the <txp:> code out—just use HTML)

<code>
<p><a href=”/rss/” title=“Subscribe to the RSS feed”><img alt=“RSS Feed Icon” src=”/path/to/rss/icon.png/gif” /></a></p>
</code>

This is assuming you have clean URL’s enabled. If not, the link to the RSS feed would be index.php?rss=1. You could also use CSS image replacement by giving the p, div, or whatever is holding the icon an ID. Something like the following would work:

<code>
/*CSS*/
#rss a
{
width: 16px; /*insert px dimensions*/
height: 16px;
background: url(/path/to/icon.png) no-repeat;
/*to make it “clickable”, apply either a float, position, or display. We’ll float ours to the right, since it’s easy*/
float: right;
text-indent: -9999px; /*Phark method */
}

HTML:
<p id=“rss”><a href=”/rss/” title=“maybe”>Subscribe to the RSS feed (or some kind of text that won’t be displayed)</a></p>
</code>

[any “strong” in the CSS is supposed to be / (asterisk) and (asterisk) /]

Last edited by deldindesign (2006-03-31 07:59:59)

Offline

#5 2006-03-31 08:26:15

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: I want to put the rss logo instead of label="RSS"

Mary wrote:

Uh, that won’t/doesn’t work…

Works perfectly well for me, with the prerequisite of course, you provide your own background icons and the necessary CSS.

regards


⌃ ⇧ < ⌃ ⇧ >

Offline

#6 2006-04-01 00:51:37

camello
Member
From: Lisbon
Registered: 2006-01-15
Posts: 63
Website

Re: I want to put the rss logo instead of label="RSS"

Thank’s a lot to you all.

I’ve tried the <code> <p><a href=”/rss/” title=“Subscribe to the RSS feed”><img alt=“RSS Feed Icon” src=”/path/to/rss/icon.png/gif” /></a></p></code> because it permited me to put the rss image, and it seems to work.

I would like to take oute the blue “link border” that apears round the rss image at IE. (see www.semanariocientifico.com).

Any other sugestion on the style sheet or at the page code?

Thank’s again

camello

Offline

#7 2006-04-01 02:37:14

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: I want to put the rss logo instead of label="RSS"

Give the “a” tag a class something like <code><a class=“rss” href=”/rss/” title=“Subscribe to the RSS feed”></code> then in your CSS use a.rss img {border:0;}.

Last edited by thebombsite (2006-04-01 02:37:39)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#8 2006-04-01 02:39:14

Elenita
Member
From: Falls Church, VA
Registered: 2004-05-16
Posts: 407
Website

Re: I want to put the rss logo instead of label="RSS"

<code><img border=“0” alt=“RSS Feed Icon” src=”/path/to/rss/icon.png/gif” /></a></code>

I take that back; the <code>border</code> attribute isn’t valid XHTML strict. Edit your stylesheet to include the equivalent, like so:

<pre>img {
border: 0px;
}</pre>

Last edited by Elenita (2006-04-01 02:45:51)

Offline

#9 2006-04-02 03:58:37

camello
Member
From: Lisbon
Registered: 2006-01-15
Posts: 63
Website

Re: I want to put the rss logo instead of label="RSS"

Yeap. Thanks Bombsite end Elenita (once again ;-) ).

The thing with the <code> a class=“rss” href=”/rss/” title=“Subscribe to the RSS feed”> then in your CSS use a.rss img {border:0;} </code> solve my problem.

fell free to take a look at my site www.semanariocientifico.com. It has mainly css problems which are covered with “dirty” html tricks.

Offline

#10 2006-04-07 21:50:09

viewchange
New Member
Registered: 2005-07-30
Posts: 5

Re: I want to put the rss logo instead of label="RSS"

Another option for doing this:
<code>
<txp:feed_link label=’<img src=”/images/icon_feed_12.gif” alt=“Journal RSS Feed”>’ section=‘journal’ flavor=‘rss’ limit=‘5’ />
</code>

Offline

#11 2006-04-08 00:59:32

camello
Member
From: Lisbon
Registered: 2006-01-15
Posts: 63
Website

Re: I want to put the rss logo instead of label="RSS"

Thanks again…

camello

Offline

Board footer

Powered by FluxBB