Customizing CSS via plugin


I’ve successfully applied custom CSS using the Customize->CSS/HTML UI, but I would rather package the styling changes with my plugin. I’ve seen examples of plugins using register_asset in plugin.rb to add CSS. I created a *.scss file under my plugin assets directory, but when I restart the server, the styling is not applied even though the plugin is enabled and working. I believe the file is being loaded, as I originally had a typo in the path, and the server reported that it was unable to find the asset (fixing the path eliminated that error message). I’ve tried registering the asset as common and desktop (I am using a laptop) without luck. Are there additional steps needed to enable CSS customizations when using this approach?

(Rafael dos Santos Silva) #2

Did you try this? :slight_smile:


That did it. Thanks!.

(Rafael dos Santos Silva) closed #4