CPT categories font size & Colour in SIDEBAR

This topic contains 11 replies, has 3 voices, and was last updated by  canalfriends 7 years, 7 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #291178

    canalfriends
    Expired Member
    Post count: 124

    Hello

    I’ve tried a number of codes in Script to change the colour and font size of CPT categories in a sidebar (homepage eventually) without changing the size or colour on other pages.

    Could you please help?

    link to page below

    Thanks

    #291181

    canalfriends
    Expired Member
    Post count: 124
    This reply has been marked as private.
    #291182

    canalfriends
    Expired Member
    Post count: 124

    Hello,

    I should stress that I’d like to change the widget titles and categories as well.

    Thanks

    #291267

    Guust
    Moderator
    Post count: 29970

    That URL is “Not Found”. Please check, thanks.

    #291332

    canalfriends
    Expired Member
    Post count: 124
    This reply has been marked as private.
    #291334

    canalfriends
    Expired Member
    Post count: 124
    This reply has been marked as private.
    #291445

    Guust
    Moderator
    Post count: 29970

    Use this CSS, adjust as required.

    
    
    .gd-cptcat-row .gd-cptcat-title {color: red}
    .geodir_cpt_categories_widget .widgettitle {color: red !important;}

    For future reference, see https://wpgeodirectory.com/docs/customizing-your-style/

    #291554

    canalfriends
    Expired Member
    Post count: 124

    Hi
    Thanks for that.
    I do use customisation tutorial but I cannot work out how to do the following in the SIDEBAR ALONE. The code you provided changes the colour everywhere. It’s the right sidebar I’m trying to modify by

    1) changing the font size of all the list elements (not just the title) in the sidebar
    2) change the colour of the list elements in the RIGHT sidebar

    Thanks

    #291562

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    just add .sidebar in front of both css rules provided by Guust.

    Thanks

    #291800

    canalfriends
    Expired Member
    Post count: 124

    Unfortunately, no matter what I try, I can’t reduce the font size of the lists.
    The main categories titles change and so does the colour.

    The problem is with the lists (subcategories).

    For example, under Accommodation (main category), I have gite, bed & breakfast etc. It’s these subcategories that are not changing (colour or font size).

    Thanks

    #291862

    Guust
    Moderator
    Post count: 29970

    Try this

    .sidebar .gd-cptcat-cat {font-size: 14px;}

    Thanks

    #291982

    canalfriends
    Expired Member
    Post count: 124

    Thanks Guust, it worked.
    I thought I had tried that code.

    Resolved

Viewing 12 posts - 1 through 12 (of 12 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket