July 18, 2013 at 1:58 pm #26352
In the release notes for 1.8 it mentionsCode:-folder config-templatebuilder:
- added add_theme_support(‘avia_template_builder_custom_css’) flag.
if enabled each template builder element gets an input field to add a custom css class
How does one enable this, as that would be very handy for something I’m working onJuly 19, 2013 at 2:48 am #130107
Open functions.php, add this line;
You will be able to add unique css selectors for each elements.
IsmaelJuly 20, 2013 at 12:44 am #130108
Thanks for the reply. I’ve added that line in functions.php, but I’m not seeing any additional fields in the editor.
Am I missing something?July 20, 2013 at 5:10 am #130109
First, upgrade to Enfold 1.8. Create a test page, add a Text Block for example. Edit the element, you’ll see a custom css field below. You can add a unique css selector for that specific element.
IsmaelJuly 20, 2013 at 10:21 am #130110
Yes I know how it is supposed to work, but it’s not doing so.
I’ve already updated to 1.8.1 and I have added the line you said into functions.php but I am not seeing the extra input field available in the editor. It looks exactly the same as before.July 20, 2013 at 10:52 am #130111
Are you sure this works because I can’t see any other reference to avia_template_builder_custom_css in the theme source, so there doesn’t appear to be anything actually using that identifier.July 20, 2013 at 11:14 am #130112
Try to re-upload the theme files and make sure that the code
is called at the bottom of functions.php. I’d recommend to clear your browser cache (and W3TC/SuperCache cache if necessary).July 21, 2013 at 10:50 pm #130113
Hey thanks, it seems that clearing the cache sorted it.
One last question. Any chance of adding the custom CSS to the layout elements too? i.e. to the divs which build the column layouts rather than just the elements within them?July 22, 2013 at 8:09 am #130114
Right now this is not possible. I’ll tag it for Kriesi (feature request).
PeterJuly 22, 2013 at 6:03 pm #130115July 22, 2013 at 6:11 pm #130116
The topic ‘Custom CSS Class Input Field?’ is closed to new replies.