Forum Discussion

Inactive User's avatar
Inactive User
6 years ago

Add a custom class to a quilt?

Is there a way to add an additional class to a quilt, such as 

<quilt layout="two-column.main-side" nestable="false" disableTopCssClass="false" class="some-custom-class">

So that I'll get 

<div class="lia-quilt lia-quilt-file-name lia-quilt-layout-two-column-main-side lia-top-quilt some-custom-class">
  • Inactive User not as you describe it (at least to my knowledge), but if you create a custom quilt, for example CategoryPage.landing, then you will get an additional class on the .lia-top-quilt div, e.g. there will be a class like .lia-quilt-category-page-landing

    but maybe DougS nows a better way to do that!

     

     

    • Inactive User,

      There is no property to define additional class in the quilt.

      One way to create new quilt add and assign that to page which will create class as per your new quilt "lia-quilt-layout-two-column-main-side". 

      Another way is to add additional class to the element by using JavaScript or Jquery .