• Is there a way to add a CSS class or variable to Core Framework via PHP code? I looked through the filter and action hooks you have and couldn’t find a straightforward way. Maybe there’s a helper function?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Core Framework

    (@coreframework)

    Hello there,

    we don’t have any straight forward option in the moment. I am curious how and where you’d like to use it?

    Thanks,

    David

    Thread Starter aaylasecura

    (@aaylasecura)

    Hi and thank you for replying. I’m developing a plugin for adding custom CSS based on user interactions and other triggers, and I would like to integrate this with CoreFramework and its search and auto-completion of classes inside a block editor.

    For example, one of the things that my plugin (when CoreFramework integration is enabled in settings) will do, is get the list of classes from CoreFramework\Helper and for each one create a “responsive variation” in the form of, e.g. on-max-tablet--<class> so that if this class name (or corresponding data attribute) is applied to the element, the <class> will be added to the element when the device width hits a “tablet” breakpoint. And many similar interaction-triggers. I would like these, and other class names, that my plugin supports to be searchable and insertable via CoreFramework’s block editor integration (of course if the user enables this in settings).

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.