Support Forums

remove underline from categories and sub-cats

This is a discussion on remove underline from categories and sub-cats within the Templates, HTML, CSS, and Design Help forums, part of the General category; Hi All, I have all my categories and sub-categories listed on my homepage, however they are all underlined. So I ...


Go Back   68 Classifieds Forums > General > Templates, HTML, CSS, and Design Help

Reply
 
Thread Tools Display Modes
Old 02-19-2010, 04:34 AM   #1
Customer
 
jason1971's Avatar
 
Join Date: Jan 2009
Location: England
Posts: 147
Rep Power: 13
jason1971 is on a distinguished road
Default remove underline from categories and sub-cats

Hi All,

I have all my categories and sub-categories listed on my homepage, however they are all underlined. So I am wondering how I can remove the underline (style="text-decoration:none")

I have looked in the style sheet and cant see anything there, I have looked in categories.php and I assume it goes there somewhere but dont have a clue exactly where to place it and exactly what to put

Any thoughts anybody ?

Many thanks

Jason
__________________
v4.1.8 Hosted - using Templatecodes neo2- green template
jason1971 is offline   Reply With Quote
Old 02-19-2010, 09:04 AM   #2
curmudgeon
 
Join Date: Mar 2006
Posts: 5,413
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

They are underlined because they are links. You specify a link in html by making it an anchor. Have you tried adding text-decoration:none to the anchor tag in the styule sheet?
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 02-19-2010, 09:53 AM   #3
Customer
 
jason1971's Avatar
 
Join Date: Jan 2009
Location: England
Posts: 147
Rep Power: 13
jason1971 is on a distinguished road
Default

Hi Larry

Thanks for your reply,

I have looked in the style sheet, and I cant see anywhere which indicates that it is a link so Im not sure where to put text-decoration:none

Can you please offer anymore assistance ?

This is what I have in the home.tpl for showing all the cats and sub-cats is there anyway or anywhere I can add the text-decoration:none ?

<table "class="tableborder" width="100%">
{section name=tr loop=$data step=$cols}
<tr>
{section name=td start=$smarty.section.tr.index loop=$smarty.section.tr.index+$cols}
<td valign="top">
{if $data[td]<>""}
{$data[td].start_link}<img src="{$data[td].image}" border="0" height="60" width="60" alt="{$data[td].name}" /></a> <td valign="top">
{$data[td].start_link}<strong>{$data[td].name}</strong></a>
{if $data[td].total <> ''}
({$data[td].total})
{/if}
<br />
{$data[td].subcats}
<!--{$data[td].description}-->
{/if}
 
</td>
{/section}
</tr>
{/section}
</table>


Thanks

Jason
__________________
v4.1.8 Hosted - using Templatecodes neo2- green template
jason1971 is offline   Reply With Quote
Old 02-19-2010, 10:29 AM   #4
curmudgeon
 
Join Date: Mar 2006
Posts: 5,413
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

I havent looked at the underlying code but I would guess the opening anchor tag is being held in the smarty variable {$data[td].start_link} and since you have the hosted version you wont be able to edit the underlying php file that generates the contents of it.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 02-19-2010, 10:45 AM   #5
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

This controlled by the style sheet for the table data entries which will appear in several places in your system by the way. If it does not exist in your specific template then put this in your css style sheet and adjust as necessary.

table.main tr td {
padding:5px;
}
table.main a {
font-size:12px;
text-decoration:none;
}
table.main a img {
vertical-align:middle;
}


What you should do in general is use Firefox with the free web developer plugin. You can then highlight the css being used on any part of the page (its the outline tool) so you know what to change.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 02-19-2010, 10:49 AM   #6
curmudgeon
 
Join Date: Mar 2006
Posts: 5,413
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by seymourjames
This controlled by the style sheet for the table data entries which will appear in several places in your system by the way. If it does not exist in your specific template then put this in your css style sheet and adjust as necessary.

table.main tr td {
padding:5px;
}
table.main a {
font-size:12px;
text-decoration:none;
}
table.main a img {
vertical-align:middle;
}


What you should do in general is use Firefox with the free web developer plugin. You can then highlight the css being used on any part of the page (its the outline tool) so you know what to change.
I may be wrong ut I was under the impression he just wanted to affect the category names and why I didnt recommend changing the style as a whole.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 02-19-2010, 11:29 AM   #7
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

I think you are correct. He can't do that unless he accepts showlisitngs for example will not underline links. Its used in a few places in fact. Personally, I turn it off not to underline at all anywhere in table data.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 02-19-2010, 09:13 PM   #8
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,311
Rep Power: 69
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

An alternative method would be to create a new class in your style sheet such as div.cat_link, then add the div in your template.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 02-20-2010, 12:31 AM   #9
Customer
 
jason1971's Avatar
 
Join Date: Jan 2009
Location: England
Posts: 147
Rep Power: 13
jason1971 is on a distinguished road
Default

I am able to access categories.php so how would I be able to do it in there, I had a look and I have obsolutely no idea where to place text descoration:none any pointers please ?

I tried a added it in the style street but no joy there !

Many thanks

Jason
__________________
v4.1.8 Hosted - using Templatecodes neo2- green template
jason1971 is offline   Reply With Quote
Old 02-20-2010, 06:55 AM   #10
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

You do not need to edit categories.php and unless you really know what you are doing it is unadvisable to be trying to edit core files (also upgrades become more difficult). Categories.php has nothing to do with it really. It is simple styling and that is controlled by the style.css file in your css folder.

Add what I said into your style sheet for your template. It will then work fine or you can do as Mike suggests and create a whole new class in your style sheet for just the categories and then place that into your template file. Personally, I don't see any need to have table data links being underlined anywhere. If you don't try it you will not know.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change how Sub cats are dissplayed guillopuig Customizations 5 11-02-2009 01:03 PM
Remove Categories bholdman Technical Support 3 09-24-2009 12:13 PM
Remove price field for specific categories adexinc Technical Support 7 08-28-2009 03:48 PM
How do you remove the Browse Categories Box? goose Templates, HTML, CSS, and Design Help 4 09-06-2007 05:58 PM


All times are GMT -4. The time now is 02:38 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0