New Landing How can we help? Themeforest Theme Support Dante Change font color on individual elements

Viewing 12 posts - 1 through 12 (of 12 total)
  • Posted in: Dante
  • #160337
    wochurch
    Member
    Post count: 55

    I would like to change the color of the widget title within a text box, but only for that particular text box, not site-wide. It seems like the thing to do would be to use the “extra class name” field along with the custom CSS field, but I can’t seem to get that going. Can you tell me the best way to do this?

    #160489
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please attach a marked screenshot of this individual-elements.
    Thanks
    Mohammad

    #160632
    wochurch
    Member
    Post count: 55

    See attached screen shot. I’ve put a red rectangle around the font I’d like to change. Just to reiterate, the rest of the site’s background is white, so that font color is necessary everywhere except this page.

    Attachments:
    You must be logged in to view attached files.
    #160640
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this custom css code:-

    h4.spb-heading span, h3.spb-heading span, h4.lined-heading span{
    color:#fff !important;
    }
    

    Thanks
    Mohammad

    #160642
    wochurch
    Member
    Post count: 55

    That code changed all titles across the site to white. I need to change the font color on this page only. Is there a way to tie the font styling to the postID?

    #160644
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this custom css code:-

    .postid-18214 .h4.spb-heading span, h3.spb-heading span, h4.lined-heading span{
    color:#fff !important;
    }

    Thanks
    Mohammad

    #160648
    wochurch
    Member
    Post count: 55

    That looks like we’re on the right track, but somehow that’s changing the font color site-wide as well.

    #160649
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I am not getting you. Please explain.
    Thanks
    Mohammad

    #160653
    wochurch
    Member
    Post count: 55

    Sure. Both custom CSS snippets you’ve given me have changed the font color for the text box titles across the entire site. I need a snippet that effects only that post.

    On this page, the font color for text box titles is dark, and the background is dark. I’d like to make those white so they’ll be more visible, but the problem is I want to do that on that post only.

    As an example of the rest of the site’s color scheme, see this page. As you can see, the background color is white, so for the entire rest of the site, I need the font color of those text boxes to remain dark.

    The custom CSS I need is one that can isolate that post specifically and allow me to change font color. It would be extra helpful if you could give me the code to change the body font color per post as well.

    #160655
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please remove my all previous code and use this post specific code:-

    .postid-18214  h3.spb-heading span{
    color:#fff !important;
    }

    Thanks
    Mohammad

    #160666
    wochurch
    Member
    Post count: 55

    Awesome. That did it. Thanks Mohammad!

    #160672
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Thanks Mohammad

    – Kyle

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register