I want to set the color of an “2/3 Column – Layout Element”
My Code on a “Text Block”
<div id=”test” style=”z-index: 1; left: 5px; top: 50px; width: 530px;
height: 370px; background-color:#003366; layer-background-color:#003366; visibility: visible”>
Don’t work. So i tried your “Color Section” This works great but only for Wide Columns.
Is there a way to set the Color of a single “Text Block”?
Cheers,
Jan
I mean is it possible to change the backround color of an Text Block?
Hey,
Add a unique custom css selector for the text block then use it to change the background. First, edit function.php and find this code:
if(isset($avia_config['use_child_theme_functions_only'])) return;
Below, add this code:
add_theme_support('avia_template_builder_custom_css');
Now, edit the text block and look for “Custom Css Class” to add a unique selector. Example “awesome-textblock”.
You can add something like this on your custom.css or Quick CSS:
.avia_textblock.awesome-textblock {
background: blue;
padding: 10px;
}
Or if you have a childtheme simply add:
to you functions file in your childtheme
Great,
Thanks again!
Glad Ismael could help. Let us know if you have any other questions or issues.