Results 1 to 14 of 14

Thread: Font Size in Category

  1. #1
    Join Date
    Apr 2009
    Posts
    5

    Default Font Size in Category

    I need help in how to reduce the size on the font in "CATEGORIES"

    THANKS

  2. #2
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    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

  3. #3
    Join Date
    Apr 2009
    Posts
    5

    Default Font category size

    There is not style.css for changing the size onf the font for category any body at there want to help me please

    thanks

  4. #4
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    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

  5. #5
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    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";

  6. #6
    Join Date
    Apr 2009
    Posts
    5

    Default is not working with

    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

  7. #7
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    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.

  8. #8
    Join Date
    Apr 2009
    Posts
    5

    Default Still doesn't work

    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

  9. #9
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    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

  10. #10
    Join Date
    Jul 2008
    Posts
    117

    Default

    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 :
      // 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
      }
      if this code does not exist in your main.css file, just copy paste the css code to your main.css file.
    • save main.css file and preview the result in your indexu front page.
    I use kosmos main.css file as example, so you may adapted the main.css file of your template file.

    Hope this help.

    thank you.
    Last edited by maulana; 04-15-2009 at 09:09 PM.

  11. #11
    Join Date
    Apr 2009
    Posts
    5

    Default I clear the cache and still not working

    Bruce, I fallow the changes but still not working I do not know what else to do if you can help me please

    thanks

  12. #12
    Join Date
    Mar 2008
    Posts
    127

    Default

    Quote Originally Posted by maulana View Post
    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.
    • save main.css file and preview the result in your indexu front page.
    I use kosmos main.css file as example, so you may adapted the main.css file of your template file.

    Hope this help.

    thank you.
    I like this solution except in the facing there is no tbody plus the above isn't in the main.

    I like and am using
    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";
    There should be a better more generic way. Am adding to my very long 'to do' list.

    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

  13. #13
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    Quote Originally Posted by submitto View Post
    Bruce, I fallow the changes but still not working I do not know what else to do if you can help me please

    thanks
    It might help us to understand why its not working for you if you give us the steps you took when trying this. The method maulana gave works, so if its not working for you, it might be something small thats being over looked, thats keeping it from working.
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  14. #14
    Join Date
    Oct 2007
    Location
    UK Essex
    Posts
    591

    Default

    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.
    ____________________________
    http://www.articleconveyer.com
    Give Your Articles Exposure



Similar Threads

  1. small font size css
    By achintha in forum Templates
    Replies: 1
    Last Post: 08-12-2008, 07:08 AM
  2. font-size of categories
    By chilleds in forum v5.x
    Replies: 2
    Last Post: 01-18-2008, 04:55 PM
  3. Change font size for link title
    By vittle in forum v5.x
    Replies: 2
    Last Post: 12-12-2005, 08:51 PM
  4. Replies: 4
    Last Post: 09-01-2003, 02:04 PM
  5. <font Face= Size=>
    By kooks in forum v5.x
    Replies: 2
    Last Post: 07-16-2003, 12:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •