Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
  • #26352

    In the release notes for 1.8 it mentions

    -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



    Open functions.php, add this line;


    You will be able to add unique css selectors for each elements.




    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?



    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.




    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.


    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.


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


    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?



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




    Thanks :)



    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 :)



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

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