Skip to main content

Magento 2: include css/script files

 <css src="https://use.fontawesome.com/releases/v5.0.8/css/all.css" src_type="url"/>          
         <css src="css/flexslider.css"/>
         <css src="css/custom.css" media="all"/>
        <script src="js/jquery-2.2.2.min.js"/>
        <script src="js/custom.js"/>
<script type="text/javascript" src="<?php echo $this->getViewFileUrl('js/jquery.superslides.js'); ?>"></script>   



<script  type="text/javascript">
    require([
        "jquery"
    ], function($){
            $('#slides').superslides({
                hashchange: false
            });
        });
</script>

Comments

Popular posts from this blog

Magento 2: Category list for custom magento system configuration section ( Backend )

In system.xml file field for multi select of category is like: NOTE: Use Select for Single item and multiselect for multiple in - <field id = "bannerlist" translate = "label" type = " multiselect " <group id = "bannerblock_setting" translate = "label" type = "text" delault = "1" sortOrder = "3" showInDefault = "1" showInWebsite = "1" showInStore = "1" > <label> Setting </label> <field id = "bannerlist" translate = "label" type = "multiselect" sortOrder = "10" showInDefault = "1" showInWebsite = "1" showInStore = "1" > <label> Select Category </label> <!-- <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>--> <source_model> Ipragmatech\Bannerblock\Model\Config\Source\C...