Tagged: background color
-
AuthorPosts
-
November 12, 2014 at 2:16 am #349812
Hello,
I’m trying to create a colored box (text holder) and have been unsuccessful through the text editor. I can change the background of the text only, but not the text box as a whole. Can you let me know if I’m going about this wrong? I’m sure it’s pretty simple yet I can’t get it and I’m clearly not skilled with CSS.Thank you,
ShelleyNovember 12, 2014 at 6:15 pm #350186Hi sgraner!
Please turn on custom CSS field for ALB elements ( http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ ) and give your text block element a custom CSS class and then add following code to Quick CSS in Enfold theme options under General Styling tab
.avia_texblock.your-custom-class { background-color: red; padding: 10px; }
Best regards,
YigitNovember 12, 2014 at 7:11 pm #350234Thanks for the reply, Yigit. I’m a little leery of adding code to the functions.php file because it caused some problems on a prior site and I don’t want to risk it. I’m not comfortable with code. I’ll just live without the box. Thank you, anyway :-)
November 12, 2014 at 7:29 pm #350245Hey!
Not at all!
If you do not mind creating a temporary admin login and posting it here privately, we can add the code to functions.php file for you :)Cheers!
YigitNovember 13, 2014 at 12:37 am #350499That’s very kind of you, thank you. If it were for something I really needed, I’d do it, but I can live without a colored box. I just thought it would be a simple line of code I could include within the text box like a font color change.
November 14, 2014 at 5:23 am #351126Hey!
It is actually quite simple. Just review the documentation on how to add a custom css class then add your own css modifications. You can set the post here as a private reply if you’re uncomfortable handing out your login credentials. We’ll create an example.
Cheers!
IsmaelJanuary 20, 2017 at 12:32 am #736141I see a string from 2014 on this topic but not sure the directions are the same ;) I would like to add colored boxes to my enfold theme but don’t know where to put the code or what the code is.. Any help here.. Thanks
FIGURED IT OUT.. Ignore ;)
- This reply was modified 7 years, 10 months ago by ericalifornia_22.
January 20, 2017 at 9:59 am #736313Hi,
Glad it’s sorted!
To know more about enfold features please check – http://kriesi.at/documentation/enfold/
Thank you for using Enfold :)Best regards,
Vinay -
AuthorPosts
- The topic ‘Background color for text boxes’ is closed to new replies.