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
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
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
I actually tried both and neither worked.
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
Hey!
It should be working now. I modified the CSS you were using.
Cheers!
Elliott
Could you tell me what was wrong with it? Thank you.
Hey!
You were adding the CSS to the wrong element. You can view the changes in your Quick CSS field.
Best regards,
Elliott
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.