-
AuthorPosts
-
July 25, 2014 at 12:23 pm #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.
July 25, 2014 at 1:52 pm #295930Hey 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!
YigitJuly 25, 2014 at 2:19 pm #295943Thanks 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.
July 25, 2014 at 2:22 pm #295946Hi!
If you do not mind posting a temporary admin login here privately, i can add the code to functions.php file for you :)
Regards,
YigitJuly 25, 2014 at 3:01 pm #295973This reply has been marked as private.July 25, 2014 at 3:05 pm #295976Hey!
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!
YigitJuly 25, 2014 at 4:01 pm #296008Thank you very much. I’ve changed de Class names because first it didn’t work.
July 25, 2014 at 4:30 pm #296016CSS 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.
July 27, 2014 at 10:12 pm #296521Hi!
Try setting the Img element a class like “custom-img-element”, then use this code:
.custom-img-element img { border:1px solid #021a40; }
Cheers!
JosueFebruary 17, 2015 at 11:47 am #397379I 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
February 17, 2015 at 2:01 pm #397470Hi!
@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,
YigitFebruary 17, 2015 at 2:18 pm #397488This reply has been marked as private.February 17, 2015 at 2:21 pm #397490This reply has been marked as private.February 17, 2015 at 2:26 pm #397496February 17, 2015 at 4:12 pm #397569This reply has been marked as private.February 17, 2015 at 4:34 pm #397578Hi!
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ünterFebruary 17, 2015 at 5:22 pm #397626This reply has been marked as private.February 17, 2015 at 5:46 pm #397659Now 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?February 17, 2015 at 5:55 pm #397666Hi!
Correct. That should work.
If not, send us a link to the page where the problem occurs so we can check.
Regards,
GünterApril 20, 2015 at 11:23 pm #431657I 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.
April 21, 2015 at 12:41 am #431683Hi @misterwoodman,
That’s strange, can you please create us a WordPress administrator account? post it here as a private reply.
Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.