Forums

I'm Weird... I Know... But... (20 posts)

  1. thisisedie
    Member
    Posted 2 years ago #

    You know the post count after categories and months? Well I want to be able to change their color/font size. I can do this by altering a few core files but I'd rather use my themes functions.php to do it. Any idea how to make it happen?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    A link to your site might help.

  3. thisisedie
    Member
    Posted 2 years ago #

    Why in the world would you need a link to my site to answer this particular question? LOL.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    You came here asking for help. If you're not willing to provide the info needed to help you, then fine. Or did you think that every one of the thousands of WordPress themes out there was exactly the same?

  5. thisisedie
    Member
    Posted 2 years ago #

    LMAO. The attitude is unnecessary. I responded the way I did because my question has absolutely ZERO to do with my theme (which I made myself) or anything else to do with my personal setup which is why I didn't post the URL in the first place. Sigh.

  6. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Changes to font size and color are made via the theme's stylesheet - not through functions.php. As CSS stands for Cascading Style Sheet, it's not possible to suggest a solution without seeing what else is in the sheet that might be affecting the relevant text.

    My original request was both valid and polite. You chose to take issue with that request by deciding what I did, or did not, have to see to help you. If you know so much about theme design/editing, why are you asking for help?

  7. thisisedie
    Member
    Posted 2 years ago #

    Apparently you didn't understand my question. I am well aware that you can't change fonts/colors via the functions.php. LMAO! I've been doing this stuff for 12 years. What I want is to change the appearance of the post counts that appear after the category/months in archives. This can not be done via the stylsheet. I can hard code it in the general-templates and classes php's in the includes folder but would like to do it using the functions.php so I don't have to alter core files. Clear now?

  8. thisisedie
    Member
    Posted 2 years ago #

    If you know so much about theme design/editing, why are you asking for help?

    I'm not asking a theme/design question and I made that clear from the get go so I'm rather confused what the attitude is about?

  9. Anydog
    Member
    Posted 2 years ago #

    Sorry "thisisedie", but I must stand on Esmi's side about the attitude issue ... "Why in the world would you need ..." was really unnecessary and patronizing way to talk to Esmi who was really polite and willing to help. If you don't admit that, well ...

    Esmi, I beleive thisisedie is right, you must do some PHP coding or at least use some WP functions, because I beleive the font color/size should be changed depending on category (ID or name) and number of posts in category. This cannot be done by CSS only, as far as I know ...

    bye bye and .... calm down and be nice

  10. thisisedie
    Member
    Posted 2 years ago #

    If "why in the world would you need" is considered a patronizing response when someone makes a request that has no relevance to what you asked then I guess I'm indeed the one with the attitude and I apologize. Sigh x infinity.

  11. ClaytonJames
    Member
    Posted 2 years ago #

    You know the post count after categories and months? Well I want to be able to change their color/font size

    Add this to the end of your style sheet.

    li.categories { color:green;}

    The outermost item in wp_list_categories() - (if I am interpreting your wants correctly, it should be a numeric value inside of parenthesis, representative of the number of items in a specific category.. ie "(10)" ) should now be the color green. Perhaps that will inspire some ideas, and you can extrapolate from my rudimentary example and expand upon it to suit your needs in the other areas you wish to change.

  12. thisisedie
    Member
    Posted 2 years ago #

    Thank you muchly Clayton but it doesn't work :o( I already tried something along those lines many moons ago.

  13. ClaytonJames
    Member
    Posted 2 years ago #

    Strange. Worked like a charm for me. Maybe it assumes your theme is using
    wp_list_categories().

    Good luck with it.

  14. thisisedie
    Member
    Posted 2 years ago #

    I am indeed using wp_list_categories. Hmmm. I dunno.

  15. ClaytonJames
    Member
    Posted 2 years ago #

    You're right. Works fine on my theme, but not on the default theme. I can change the category font size with li.categories, but something is keeping me from overriding the post count color. Oh well.

  16. ezytiger
    Member
    Posted 2 years ago #

    @ thisisedie

    Can you re-check this post please and post up a zipped file of "Page Category Plus" if you still have the plugin somewhere to download. Would be hugely Grateful.

    Link to post

    - Sorry to intrude on the thread :)

  17. thisisedie
    Member
    Posted 2 years ago #

    Sorry, I don't remember where I found it now and no longer have it :(

  18. alchymyth
    The Sweeper
    Posted 2 years ago #

    Works fine on my theme, but not on the default theme. I can change the category font size with li.categories, but something is keeping me from overriding the post count color.

    in the default theme, for instance, it is in 'ul li.widget_categories ul li.cat-item'
    and the cat name is in a link 'ul li ul li.cat-item a'

    archives are different again: 'ul li.widget_archive ul li'
    with the archive name in 'ul li.widget_archive ul li a'

    this is one of the reasons, it is actually quite interesting to know which theme you are using or to have a link to your site.
    together with a description of what you want to achieve with the formatting.

  19. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Why not use a custom function built around get_categories to output the category list along with additional classes/ids? These hooks can them be used for styling via CSS.

  20. eleanorcady
    Member
    Posted 2 years ago #

    tension aside, I have the same question. I know my blog has a million errors so pleez don't judge. how do I find out what property is creating the count...?

    my blog

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.