Want to include css file which is applicable to only homepage from xml file.
Tried this :
<cms_index_index>
<action add css>
.
.
</action>
</cms_index_index>
using this in local.xml adds that particular css in every cms page.
Any Idea ?
Thanks in Advance.
Enable CSS critical pathCSS critical path configuration is located on the Stores > Settings > Configuration > ADVANCED > Developer tab. However, the Developer tab is hidden in production mode. Once in production mode, CSS critical path can only be enabled using the CLI. Make sure that there is a critical.
In the cms home page there is Design(Layout Update XML) use the following code in that
<reference name="head">
<action method="addItem"><type>skin_js</type><name>js/myjavascript.js</name></action>
</reference>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With