Viewing 21 posts - 1 through 21 (of 21 total)
  • Author
    Posts
  • #295892

    i’m trying to get different textboxes with different colours. The ‘Color Section’ from AVIA can’t be used in 1/4 only 1/1. Do you have a simple solution for my problem.

    #295930

    Hey WorkRelax!

    Please firstly turn on custom CSS field for ALB elements ( http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ ) and then give your text boxes custom CSS class and add following code to Quick CSS in Enfold theme options under General Styling tab

    .custom-class-one .avia_textblock { background-color: red; padding: 10px; }
    .custom-class-two .avia_textblock { background-color: blue; padding: 10px; }

    Cheers!
    Yigit

    #295943

    Thanks for the info. I’m not an expert and don’t understand where I can add that line in function.php. Maybe you have some more detailed instructions. Thanks already.

    #295946

    Hi!

    If you do not mind posting a temporary admin login here privately, i can add the code to functions.php file for you :)

    Regards,
    Yigit

    #295973
    This reply has been marked as private.
    #295976

    Hey!

    I have added the code to Functions.php file, custom CSS field is now available. Please give custom class to your textboxes and apply the code i posted here – https://kriesi.at/support/topic/different-color-for-textbox/#post-295930

    Cheers!
    Yigit

    #296008

    Thank you very much. I’ve changed de Class names because first it didn’t work.

    #296016

    CSS field for ALB elements is a great feature!

    I have added the CSS field and its showing up. Now I want to use it for an Image-Element eg.
    img {
    border:1px solid #021a40;
    }

    What do I have to place in the field to achive this? I tested
    border:1px solid #021a40;

    • This reply was modified 10 years, 4 months ago by royaltask.
    #296521

    Hi!

    Try setting the Img element a class like “custom-img-element”, then use this code:

    .custom-img-element img {
    border:1px solid #021a40;
    }

    Cheers!
    Josue

    #397379

    I have the same problem:

    I would like to create background coloured textboxes.
    I added the code to the function.php (by the way: there is a functions.php and a functions-enfold.php. Which one would be the right one?) as described above.
    However I don’t find a new input field for css.
    I am working with a child theme and added the code to the functions.php of enfold. Is this maybe the problem?

    BR

    Clemens

    #397470

    Hi!


    @muuclemens
    That should not be the case. Do you mind creating a temporary admin login and posting it here so we can look into it?

    Best regards,
    Yigit

    #397488
    This reply has been marked as private.
    #397490
    This reply has been marked as private.
    #397496

    Hey!

    Can you post the link to your website as well? :)

    Regards,
    Yigit

    #397569
    This reply has been marked as private.
    #397578

    Hi!


    @muuclemens
    :

    If you are working with a child theme, you NEED NOT copy the files functions.php and functions-enfold.php.

    You only need to add those modifications to child themes function.php that you need and the other 2 files are loaded automatically by WP.

    So restore the original Enfold Child theme.

    In functions.php of the child theme look for:

    
    /**
     *	Turn on Custom CSS Class field for all Avia Layout Builder elements
     *	@link http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/
     */
    	//add_theme_support('avia_template_builder_custom_css');
    

    and replace it with:

    
    /**
     *	Turn on Custom CSS Class field for all Avia Layout Builder elements
     *	@link http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/
     */
    	add_theme_support('avia_template_builder_custom_css');
    

    Now you should see the custom CSS field in the ALB Elements.

    In styles.css of the child theme you also only need to put your additional customizations.

    Cheers!
    Günter

    #397626
    This reply has been marked as private.
    #397659

    Now I get the field within the Layout Builder elements. I have created a functions.php under the child with only the code above. Under enfold remains the original functions without changes.

    For the given example:
    .custom-class-one .avia_textblock { background-color: red; padding: 10px; }
    .custom-class-two .avia_textblock { background-color: blue; padding: 10px; }

    I would have to input only
    custom-class-one
    into the corresponding field of a text block, right?

    #397666

    Hi!

    Correct. That should work.

    If not, send us a link to the page where the problem occurs so we can check.

    Regards,
    Günter

    #431657

    I have successfully created the custom-color CSS for other Enfold sites, but can’t get it to work on this site: http://capitolhomehea.wpengine.com/color-box-test/ (hosted on WPengine)

    I updated the functions.php in the child theme with the following: add_theme_support(‘avia_template_builder_custom_css’);

    But when I edit a text box, I don’t see the “Custom CSS Class” option, as I do in other installations.

    #431683

    Hi @misterwoodman,

    That’s strange, can you please create us a WordPress administrator account? post it here as a private reply.

    Regards,
    Josue

Viewing 21 posts - 1 through 21 (of 21 total)
  • You must be logged in to reply to this topic.