I need help in how to reduce the size on the font in "CATEGORIES"
THANKS
I need help in how to reduce the size on the font in "CATEGORIES"
THANKS
If I'm correct its either in lib/link.class.php or in the CSS file of your theme ( /themes/<your_theme>/style.css )
Bruce should be able to confirm or deny this![]()
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
Follow Us On Twitter | FaceBook Profile | YouTube Videos
There is not style.css for changing the size onf the font for category any body at there want to help me please
thanks
Have you also checked /lib/link.class.php ???
Changing the font size has been asked and answered before. Have you done a search on the forum for it?
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
Follow Us On Twitter | FaceBook Profile | YouTube Videos
It's in category.class.php in a number of places. There is nothing there controlling the font size, so you would need to add it. For example line 502
$category .= "<b><a href=\"$cat_url\" style=\"$this->cat_link_style\" name=\"cat_$cat_id\">$cat_name</a></b> $html_number_of_links \n";
to
$category .= "<b><a href=\"$cat_url\" style=\"$this->cat_link_style\" name=\"cat_$cat_id\"><font size="-1">$cat_name</font></a></b> $html_number_of_links \n";
I use the same excat link:
$category .= "<b><a href=\"$cat_url\" style=\"$this->cat_link_style\" name=\"cat_$cat_id\"><font size="-1">$cat_name</font></a></b> $html_number_of_links \n"; and is not working instead it give me a syntax error asking me to remove the "" so I remove and is working wihtout the syntax error but no change at all in the size of the font I even use a bigger size to see if that works but nothing any other suggestion please
thanks
That was my mistake sorry, PHP won't like the double quotes there because they don't belong.. Instead of using <font size="-1"> use <font size='-1'> instead.
Sorry Bruce but still doesn't work no matter what size of the font I put it wont change the size... any other answer.
please thanks
Did you clear your template cache after making the changes? You can clear them in the Admin panel or just delete all the files in /template_c
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
Follow Us On Twitter | FaceBook Profile | YouTube Videos
Hello submitto,
Here the step how to change font size for your categories.
- open main.css file in your template file.
- find this code in your main.css file :
if this code does not exist in your main.css file, just copy paste the css code to your main.css file.// styling for parent categories
#category table tbody tr td p b a {
margin: 0 10px 10px 0;
font-size: 20px; <== change the font size here
}
// styling for description and child categories
#category table tbody tr td p {
margin: 0 10px 10px 0;
font-size: 15px; <== change the font size here
}I use kosmos main.css file as example, so you may adapted the main.css file of your template file.
- save main.css file and preview the result in your indexu front page.
Hope this help.
thank you.
Last edited by maulana; 04-15-2009 at 09:09 PM.
Bruce, I fallow the changes but still not working I do not know what else to do if you can help me please
thanks
I like this solution except in the facing there is no tbody plus the above isn't in the main.
I like and am usingThere should be a better more generic way. Am adding to my very long 'to do' list.Code:$category .= "<b><a href=\"$cat_url\" style=\"$this->cat_link_style\" name=\"cat_$cat_id\"><span style=\"font-size: 13px;\">$cat_name</span></a></b> $html_number_of_links \n";
As with most puter stuff there are always more than 1 way.
Last edited by Harkster; 04-15-2009 at 09:49 PM. Reason: typo
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
Follow Us On Twitter | FaceBook Profile | YouTube Videos
update the category path,
http://www.nicecoder.com/community/f...790/#post37052
Brings back some memories
Last edited by echo@; 04-16-2009 at 11:54 AM.