PDA

View Full Version : Featured Links


Sharr76
08-02-2005, 07:54 PM
I would like to change the background colour only on the featured links where it currently showing white I'd like to change that to another colour so as its stands out from the normal links below. So Featured links background colour could be yellow and normal links background stays white. :wink:

achafik
08-02-2005, 08:25 PM
Open: templates/main.tpl
around line 47 find: Content visible to registered users only.
add a line and insert: Content visible to registered users only.

around line 51, find: Content visible to registered users only.
add a line and insert: Content visible to registered users only.

Close File.

Open: main.css

at the end, add:
Content visible to registered users only.

Hope this helps :)

Regards,
Achafik

Sharr76
08-02-2005, 08:35 PM
Again you are brill!! :lol: Thanks

stone
11-11-2005, 05:36 PM
this hack seems too simple to screw up, yet i haven't been able to get it to work yet.

here is code from my templates/main.tpl

<h3>{l}Featured Links{/l}</h3>
<div style="show_featured">
{foreach from=$feat_links item=link name=links}
{include file="link.tpl" link=$link}
{/foreach}
</div>

here is code from main.css

.show_featured {
margin-top: 2px;
padding: 3px;
background: yellow;
line-height: 19px;
border: 1px solid #5e74b3;
}


here is url in question

http://www.winethology.com/Wineries/United_States/Michigan/


any ideas would be appreciated. thanks.

Errk!
11-11-2005, 09:23 PM
I'm having the same problem as stone.

Was the template maybe changed since that hack was posted?

Bill
11-12-2005, 04:36 AM
It might have, this thread was posted before RC 5.2 was released.

Optimit
12-16-2005, 04:25 AM
I know this is a late post, but here is the reason you had a problem in case anyone else has the same problem.

This
<div style="show_featured">

Should be before this.

<h3>{l}Featured Links{/l}</h3>

So it looks like this:

<div style="show_featured">
<h3>{l}Featured Links{/l}</h3>
{foreach from=$feat_links item=link name=links}
{include file="link.tpl" link=$link}
</div>
{/foreach}