Set default WrapperCssClass on ContentBlock_MVC widget - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

Set default WrapperCssClass on ContentBlock_MVC widget

  • Set default WrapperCssClass on ContentBlock_MVC widget
  • Hi,

    How do you add a default WrapperCssClass so that the content administrator doesn't have to keep adding the same class as they drag on the ContentBlock_MVC widget? 

    Would I need to modify the widget template following something like this:

    docs.sitefinity.com/feather-modify-widget-templates

    If so what would the .cshtml file look like?

    Thank you

    Simon

     

  • Hi Simon,

    Default.cshtml should looks like this: github.com/.../Default.cshtml

     

    You can just download it from github, place it in correct folder, and modify it as you want