How to apply css in theme development
Created 7 years ago by ankitasomanHi @ryanthompson, I am developing theme for my website. I am just stuck while linking and applying my css to the pages. metadata file contains the following snippet: {# Include Styles Loaded From Outside #} {% for style in asset_styles("styles.css") %} {{ style|raw }} {% endfor %}
I have created a directory named styles in resources directory of theme, and styles.css contains the css code. But styling does not get applied on page. How to do this??
ankitasoman
—
7 years ago
ankitasoman
—
7 years ago
Did you try this?
{{ asset_add("styles.css", "vendor.type.slug::css/style.css") }}