Gossamer Forum
Home : Products : Gossamer Links : Discussions :

<%next_span%>

Quote Reply
<%next_span%>
Hi,

I know this is pretty simple. But i tried and didn't work.

I want to change the link color of <%next_span%> links. (they show up like Pages: 1 2 3 >>)

I tried to keep this in css global and adding it next to <%next_span%> tag. Still the links showing general links color.

------------

a.Pages:link .........
a.Pages:visited ...........
a.Pages:hover .....

---------------

This is not working because the link is taking general link properties.

Where should i change? Where is this <%next_span%> tag in the files? I checked SITEHTML.pm.

Thanks.
Quote Reply
Re: [hegu] <%next_span%> In reply to
This has been discussed before, see for example

http://www.gossamer-threads.com/...i?post=211632#211632

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] <%next_span%> In reply to
Thanks! Thanks!! Thanks a lot!!!Smile
Quote Reply
Re: [hegu] <%next_span%> In reply to
Hi,

The sub and tag in the above thread is working for category.html. Not for search_results.html

Why?

This is the sub i have (my_next_span):

sub {
my $next_span = shift;
$next_span =~ s,(href=".+?"),$1 class="pages",g;
return $next_span;
}

Tag i am using in category.html:

<%if next_span%>
<!-- Next/Previous links if spanning pages. -->

<%body_font%><b>Pages: <%my_next_span($next_span)%></b></font><br>
<%endif%>
</td></tr>

My CSS for class 'pages':

a.pages:link {color:#FFFFFF; font-weight:bold; font-face:Verdana,Arial,Helvetica; font-size:12px; text-decoration:none; }
a.pages:visited {color:#FFFFFF; font-weight:bold; font-face:Verdana,Arial,Helvetica; font-size:12px; text-decoration:none; }
a.pages:hover {color:#FFFFFF; text-decoration: none; }


The same tag working on category.html. Not working on search_results. Any suggestions?

Thanks