skip to Main Content

Hi thanks for having a look. I am having trouble adding an additional stylesheet to older prestige theme for whatever reason it’s not getting recognized.

I am adding it in theme.liquid like this {{ ‘application.css’ | asset_url | stylesheet_tag }}

NOTE The file has same name in assets directory, and if I put in the product section it works.

See screenshot I tried it above or below.

This works fine for me in the dawn theme.

enter image description here

2

Answers


  1. Chosen as BEST ANSWER

    I figured out what was going on for some reason when I add the stylesheet tag in my local dev environment it does not carry over to theme code.

    So when I added it directly in theme code editor it worked fine.

    So I did it like this:

            {{ 'application.css' | asset_url | stylesheet_tag }}
    

  2. I think there is a problem with your syntax (apostrophes). Also, ensure that application.css actually exists in the /assets directory

    {{ 'application.css' | asset_url | stylesheet_tag }}

    not:

    {{ ‘application.css’ | asset_url | stylesheet_tag }}

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search