Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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,
    Shelley

    #350186

    Hi 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,
    Yigit

    #350234

    Thanks 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 :-)

    #350245

    Hey!

    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!
    Yigit

    #350499

    That’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.

    #351126

    Hey!

    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!
    Ismael

    #736141

    I 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 ;)

    #736313

    Hi,

    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

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Background color for text boxes’ is closed to new replies.