Question

Added app/code/Namespace/Customtab/view/frontend/layout/customtab_index_index.xml

<?xml version="1.0"?>
 <head>

    <css src="Namespace_Customtab::css/viewer3d.css" />

</head>
</page>

And paste the file in Namespace/Customtab/view/frontend/web/css/viewer3d.css

Done di:compile, but the file is not in the viewsource . Please help me to find a solution.

Was it helpful?

Solution

I got the answer. Changed the xml file. Pasted the code in

app/code/Namespace/Customtab/view/frontend/layout/catalog_product_view.xml.

Now its working.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top