Tagged: custom.css, Template Builder
-
AuthorPosts
-
July 18, 2013 at 1:58 pm #26352
In the release notes for 1.8 it mentions
Code:-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 classHow does one enable this, as that would be very handy for something I’m working on
July 19, 2013 at 2:48 am #130107Hi,
Open functions.php, add this line;
add_theme_support('avia_template_builder_custom_css');
You will be able to add unique css selectors for each elements.
Regards,
Ismael
July 20, 2013 at 12:44 am #130108Thanks 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 #130109Hi,
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.
Regards,
Ismael
July 20, 2013 at 10:21 am #130110Yes 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 #130111Are 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 #130112Try to re-upload the theme files and make sure that the code
add_theme_support('avia_template_builder_custom_css');
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 #130113Hey 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 #130114Hey!
Right now this is not possible. I’ll tag it for Kriesi (feature request).
Regards,
Peter
July 22, 2013 at 6:03 pm #130115Thanks :)
July 22, 2013 at 6:11 pm #130116 -
AuthorPosts
- The topic ‘Custom CSS Class Input Field?’ is closed to new replies.