Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #737970

    Hi Enfold Support,
    Is it possible to change the font color and style for a specific category of posts? We have posts of category “Press Release” that have a different color title font color than “Blog” categorized posts. To date we’ve been using inline styling that sometimes that override the theme font styling so the post feed will look great on the “Press Releases” page but not when we want to create a “Blog Posts” feed in a widget using the theme’s styling.

    Can we designate the font color when using the Blog Post Content Element? Can we create a new Blog Style that we can apply to the Blog Post Content Element?

    Thanks!

    #738178

    Hey Eric,

    You can use the page-id class or category class to do that, please post a link to the site in question and try to explain a bit further what changes you are looking to make.

    Best regards,
    Rikard

    #791304

    Hello,

    I’m attempting this same thing, but I’ve had no luck. I tried using multiple variations with the page ID to change the color of my H2 in my category pages, but I can’t get it to work. It is currently white, which I just need to change the H2 color on that page. If possible I’d like to change the H2 to a different color on all category pages. My CSS is below (I also uploaded a screenshot to see my chrome inspector elements, etc.)

    .page-id-441 h2.post-title.entry-title {
    color: #5c5c5c;
    }

    #791328

    Hi Rikard, sorry for the long delay. We initially just left the press release posts headline coloring as is. That said we’ll try creating a font color style for the header fonts used in the “press release” posts using the category ID class as you mention. @artisforever, thanks for revisiting this. :)

    #791359

    Hah, no problem. Let me know if you have any luck, as of right now, there is a conflict with the h2’s on my category archive page and some other pages, so I’d rather specify changing that using the page ID or an overall category page switch. Let me know if anything works out for you. I tried a bunch of variations going back and forth in my google inspector and my quick css but couldn’t get anything to change.

    Good luck!

    #791461

    Hi guys!

    Eric, do let us know how things work out for you. If you need further help, please post a link to the site in question so we can take a closer look.

    @artisforever, thank you for the screenshot. Have you tried adding the !important rule?

    .page-id-441 h2.post-title.entry-title {
    color: #5c5c5c !important;
    }

    Also, I think it’s best if we can take a look at the actual page in question. You can create a new thread so that you can put information in the Private Content section. If you put that info in this thread, Eric will also see it. ;)

    Best regards,
    Sarah

    #986694

    Hi, I would like to change the background color of magazine title depending on categories of post: category1->red, category2->blue, and so on…
    I know how to change all the titles background in the CSS with the following code:

    .av-magazine-top-heading {
    background-color: #cc1212;
    color: #ffffff!important;
    }

    but I don’t know how to distinguish between categories… HELP!!!

    #986720

    Hey ferrignoroberto,

    You would need to target the specific category id. This can be pulled via the browser inspector. So you would need a code like this:

    .page-id .av-magazine-top-heading {
    background-color: #cc1212;
    color: #ffffff!important;
    }

    Best regards,
    Jordan Shannon

    #986861

    Hi Jordan, thank you, but I don’t understand “You would need to target the specific category id. This can be pulled via the browser inspector. “.
    I’m new in WordPress and CSS so I don’t understand how to do this. I tried with:

    .category-news .av-magazine-top-heading {
    background-color: #cc1212;
    color: #ffffff!important;
    }

    but it doesn’t work… ;(

    #987137

    Hey Roberto,

    Please provide a link to the site and area you want to modify.

    Best regards,
    Jordan Shannon

    #987211

    Hi Hordan please find here attached the link to the temporary webpage, it’s only a copy of demo Homepage V10 Magazine:

    To explain better: I would like to have for instance the header of first magazine block (ECONOMY) with a certain background color, let’s say RED for instance, and for the second block (LIFESTYLE) a background color GREEN…
    Each category one assigned color for background…
    Thank you

    #987516

    Hi,

    I see. Please add the following to quick css. This would take care of Economy and Lifestyle and then the others would follow suit #av-magazine-3, av-magazine-4, etc.:

    #av-magazine-1 .av-magazine-top-bar {
    background:red;
    }
    
    #av-magazine-2 .av-magazine-top-bar {
    background:green;
    }

    Best regards,
    Jordan Shannon

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