Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #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 class

    How does one enable this, as that would be very handy for something I’m working on

    #130107

    Hi,

    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

    #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?

    #130109

    Hi,

    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

    #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.

    #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.

    #130112

    Try 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).

    #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?

    #130114

    Hey!

    Right now this is not possible. I’ll tag it for Kriesi (feature request).

    Regards,

    Peter

    #130115

    Thanks :)

    #130116

    Hi!

    Since those elements dont have a popup window thats unfortunatley not possible. You can of course always place them inside a section and add a css class to the section :)

    Regards,

    Kriesi

Viewing 11 posts - 1 through 11 (of 11 total)

The topic ‘Custom CSS Class Input Field?’ is closed to new replies.