Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #28777

    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

    #138595

    I mean is it possible to change the backround color of an Text Block?

    #138596

    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;
    }

    #138597

    Or if you have a childtheme simply add:

    Code:
    add_theme_support(‘avia_template_builder_custom_css’);

    to you functions file in your childtheme

    #138598

    Hey,

    @debban: Thanks for the tip.

    Cheers,

    Ismael

    #138599

    Great,

    Thanks again!

    #138600

    Glad Ismael could help. Let us know if you have any other questions or issues.

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