Control Sizing of CMS Items with a Toggle

site profile thumbnail


I'll show you a trick to control the size of CMS elements via a toggle to give your clients more flexibility in displaying CMS collections in Webflow. Each CMS element has an example toggle "medium", "large" and "align Center". As soon as one of these options is active, a class is added to the element "grid-item" via custom code, which changes the size of the element or the alignment. The classes and sizes of the grid items can be changed in the hidden section-cms-grid. In order for it to work, the embed field in each CMS item and the jQuery code must be added. Tutorial:

More sites by Jonas Arleth

See profile