Custom Elements, attributes stopped working

Hi there

In previous versions of CS we’ve made around 45 custom CS Elements with various field types. Earlier we’ve been outputting those using something like this

$id, 'class' => $class, 'style' => $style ), true ); ?>> - but with the update of CS we had to change to this to make it work
$id, 'class' => $class, 'style' => $style ), true ); ?>>

Now classes and styles are outputting correct, but if we have fields of the toggle-type (e.g. https://a.cl.ly/z8uLwybK), we have been ‘testing’ those with e.g.
if ($show_first_item_big):

  • but this doesn’t work anymore.

Suggestions?

Hi @mediegruppen,

The custom elements are a part of custom development and unfortunately, it is beyond the scope of Theme Support. I would suggest you avail of our newly launched service called One, where we answer the questions beyond normal theme support or you can avail Elite where we do custom development.

Thanks

Hi

Is there any official documentation on how to build custom CS Elements?

Thanks!

Hello @mediegruppen,

Please have a look at our element API doc to learn more about how to create your own elements.



Hope it helps
Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.