Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-07-16 21:02:59

bmattock
New Member
Registered: 2006-07-16
Posts: 3

Applying CSS to txp tag question

Please forgive me asking what must be a very basic question, but I must not be looking for the answer in the right way, because I have read the various FAQ’s and Googled and I’m lost.

I am using the latest Textpattern, and the ‘out of the box’ functionality, and I just want to change the color and the size of the links that appear in the sidebar. I have been through the Presentation/Style and indeed, through every php file that I could think of, looking for where the txp:linklist gets styled, and can’t find it. I have tried adding the class linklist and color: black because I see in the generated html this:
<code>
<p class=“linklist”>
</code>

But it seems to have no effect. I appears to me that ‘txp:whatever’ doesn’t get applied to any stylesheet I can get my hands on, internal or external. I am, as I said, lost.

I just want this:

<code>
<!— left —>
<div id=“sidebar-1”> <txp:linklist wraptag=“p” />
</div>
</code>

To be ‘black’ instead of the default color (I’m colorblind and have no idea what color it is, but it is not black).

Any help? I’d surely appreciate it!

Thanks,

Bill Mattocks
http://www.thesementheycallknights.com

Last edited by bmattock (2006-07-16 21:03:29)

Offline

#2 2006-07-16 21:17:36

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Applying CSS to txp tag question

Try p.linklist a {color: black;} or #sidebar-1 a {color: black;}.

Offline

#3 2006-07-16 21:31:27

bmattock
New Member
Registered: 2006-07-16
Posts: 3

Re: Applying CSS to txp tag question

Els wrote:

Try p.linklist a {color: black;} or #sidebar-1 a {color: black;}.

That did it! It was the #sidebar-1 a {color: black;} that did it. I actually had that in my default.css file, but did not realize that the txt:whatever tags were processed through it. I’m still not sure ‘why’ they would be. I mean, I realize that a link is an <a href=something /> tag, but I was looking at the ‘class linklist’ and thinking it had something to do with that. Yikes. Every time I think I know something, I don’t.

Thanks again!

Best,

Bill Mattocks

Offline

Board footer

Powered by FluxBB