Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1358195

    hello !
    i need to have a color for each post category
    and in masonry change the color title with the color of each category
    and, if it’s possible, to change the color of the post’s title in the widget recent post too.
    and, may be, to change the color of the category name in the widget category too.

    can you help me ?

    #1358199

    Hey mediafacto,

    Here’s CSS to change one category headlines, one sort button and one widget category:

    .av-masonry a.category-newsletters h3.av-masonry-entry-title {
      color: red; 
    }
    
    a.engagements-rse_sort_button span {
      color: yellow; 
    }
    
    #categories-3 .cat-item-46 {
      color: blue; 
    }

    You should be able to duplicate the CSS and simply change the categories for the rest. You will have to inspect the categories in the widget, to find their different classes.

    Best regards,
    Rikard

    #1358201

    hello it’s doesnt work the titles of the post stay black (ex : VOX’EN PARLE : L’UTILISATION DE L’IMAGE DU SALARIÉ) in the mansory grid

    and the categorys stays grey in the widget (right side bar)

    • This reply was modified 2 years, 5 months ago by mediafacto.
    #1358228

    Hi,

    First link; which CSS are you trying to use?

    Second link; try this instead:

    #categories-3 .cat-item-46 a {
      color: blue !important; 
    }

    Best regards,
    Rikard

    #1358231

    Thanks :)

    sorry i dont understand
    i use thi code :
    .av-masonry a.category-newsletters h3.av-masonry-entry-title {
    color: red;
    }

    but the tiltle “VOX’EN PARLE : L’UTILISATION DE L’IMAGE DU SALARIÉ” (first post in the grid) still in black

    #1358241

    try:

    .category-podcasts .av-masonry-entry-title.entry-title,
    .category-podcasts .post-title.entry-title,
    .sort_by_cat a.podcasts_sort_button {
      color: red;
    }
    
    .category-newsletters .av-masonry-entry-title.entry-title,
    .category-newsletters .post-title.entry-title,
    .sort_by_cat a.newsletters_sort_button {
      color: green;
    }
    
    .category-publications .av-masonry-entry-title.entry-title,
    .category-publications .post-title.entry-title,
    .sort_by_cat a.publications_sort_button {
      color: blue;
    }
    
    .category-vie-du-cabinet .av-masonry-entry-title.entry-title,
    .category-vie-du-cabinet .post-title.entry-title ,
    .sort_by_cat a.vie-du-cabinet_sort_button {
      color: orange;
    }

    etc.
    each 3rd line is if you got a sort on categories aktivated

    PS: if you like to have an indicator for activated sort cat:
    f.e.:

    .sort_by_cat a.active_sort {
      text-transform: uppercase;
      font-weight: bold;
    }

    IMPORTANT : sometimes it is not sort_by_cat but : av-sort-by-term ( if portfolio masonry …)
    like here on that masonry: https://kriesi.at/themes/enfold-2017/elements/masonry/

    And you see – we could have the problem that a post has two or more cats or portfolio “cats” ( terms )
    like in the example page : portfolio_entries-photography and portfolio_entries-illustration

    on that portfolio case you got some ID’s to differ what is active sort: ( for that demo page of enfold above )

    #masonry_id_photography_sort .av-masonry-entry-title.entry-title {
      color: red;
    }
    #masonry_id_illustration_sort .av-masonry-entry-title.entry-title {
      color: blue;
    }
    #1358250

    Hi,

    Thanks for helping out @guenni007 :-)

    Best regards,
    Rikard

    #1358254

    f.e. on that page: https://www.voxius-avocats.com/actualites/

    .av-sort-by-term   a.active_sort .inner_sort_button span {
      text-transform: uppercase;
      font-weight: bold;
    }
    
    #masonry_id_interventions_sort .av-masonry-entry-title.entry-title,
    .interventions_sort_button .inner_sort_button {
      color: red;
    }
    #1358272

    Hi,
    Thanks for sharing Guenni007

    Best regards,
    Mike

    #1358294

    By the way – you are loading your questrial font from mixed content page – guess it was your developer page :
    mf-prod.com/voxius/

    if you like to synchronize the colors on your sidebar category listings :

    .widget .cat-item-42 a {color: blue}
    .widget .cat-item-45 a {color: green}

    etc.

    maybe this is easier to use instead – because you do not need to look for the ID’s:

    .widget .cat-item a[href*="newsletters"] {color: green}
    .widget .cat-item a[href*="vie-du-cabinet"] {color: orange}
    .widget .cat-item a[href*="publications"] {color: blue}

    etc.

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.