assign css file to specific section

Shaheer03161
Tourist
8 0 2

Hi there 

I have a menu section and i uploaded its css seperately and now i wanna assign the css file to specificly menu section for section i am applying if condition can any help me plzzz. asap.

I am attaching the code on which i wanna apply condition.

 

{% if section.settings.menu-responsive-mobile %}

<link rel="stylesheet" href="{{ 'layout.theme.css' | asset_url }}" as="style">
<script src="{{ 'layout.theme.js' | asset_url }}" defer="defer"></script>
<script src="{{ 'vendors@layout.theme.js' | asset_url }}" defer="defer"></script>

{% endif %}

0 Likes