• 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?

Viewing 15 replies - 1 through 15 (of 19 total)
  • A link to your site might help.

    Thread Starter thisisedie

    (@thisisedie)

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

    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?

    Thread Starter thisisedie

    (@thisisedie)

    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.

    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?

    Thread Starter thisisedie

    (@thisisedie)

    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?

    Thread Starter thisisedie

    (@thisisedie)

    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?

    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

    Thread Starter thisisedie

    (@thisisedie)

    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.

    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.

    Thread Starter thisisedie

    (@thisisedie)

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

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

    Good luck with it.

    Thread Starter thisisedie

    (@thisisedie)

    I am indeed using wp_list_categories. Hmmm. I dunno.

    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.

    @ 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 ??

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘I’m Weird… I Know… But…’ is closed to new replies.