Timeline for How to add JS and CSS calling in PHTML file?
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 4, 2017 at 4:05 | comment | added | shivashankar m | I tried this but remain same | |
Aug 3, 2017 at 18:24 | comment | added | DelwaR | $block->getUrl() will give your base path like example.com. Other path means your css or js file folder structure after your main path. | |
Aug 3, 2017 at 10:56 | comment | added | shivashankar m | I was given liken lik above | |
Aug 3, 2017 at 10:56 | comment | added | shivashankar m | <link rel="stylesheet" type="text/css" href="<?php echo $block->getUrl('css/index.css');?> "> | |
Aug 3, 2017 at 10:56 | comment | added | shivashankar m | let us know, How to give other path here:<link rel="stylesheet" type="text/css" href="<?php echo $block->getUrl();?> other-path"> | |
Aug 3, 2017 at 10:39 | history | answered | DelwaR | CC BY-SA 3.0 |