Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #369047

    Hi. I have looked at a previous support stream to add a color background to a text box. I followed your instructions per the link below. However, it just is not working. Here is the code in my custom css

    .homebox1 .avia_textblock { background-color: #d62222; padding: 10px; }
    .homebox2 .avia_textblock { background-color: blue; padding: 10px; }

    I have in turn added homebox1 to one custom css field for one text box and homebox2 to the other yet with no results.

    Help please. Thanks.

    https://kriesi.at/support/topic/different-color-for-textbox/#post-295930

    #369101

    Hey rhsheehan!

    Send us a link to your page and we’ll take a look. You can set your reply as private if you wish.

    Cheers!
    Elliott

    #369109
    This reply has been marked as private.
    #369170

    Hey!

    It looks like you added your class as “.homebox1” in the custom CSS field. Use just “homebox1” instead, with no period.

    When you write your CSS code then you need to use a period to target a class but for adding a class to an element there should not be one.

    Cheers!
    Elliott

    #369172

    I actually tried both and neither worked.

    #369231

    Hi!

    You still have it set to “.homebox2” when it should be “homebox2”. Send us a WordPress login and we’ll fix it for you so you can see how it’s done.

    Best regards,
    Elliott

    #369476
    This reply has been marked as private.
    #369744

    Hey!

    It should be working now. I modified the CSS you were using.

    Cheers!
    Elliott

    #369756

    Could you tell me what was wrong with it? Thank you.

    #370052

    Hey!

    You were adding the CSS to the wrong element. You can view the changes in your Quick CSS field.

    Best regards,
    Elliott

    #370078

    I just realized what you changed. I was going by a post from your support in the forum when I added it the first time.

    Thanks.

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Color Text Box’ is closed to new replies.