skip to Main Content

Laravel blade view relative path – CPanel

I need help with my Laravel Blade view. Currently i'm using <link href="{{asset('css/sample.css')}}" rel="stylesheet"> to generate the path to my sample.css in my public folder every time. Which it'll generate something like <link href="http://mydomainname/css/sample.css" rel="stylesheet"> and it's working well (my…

VIEW QUESTION

Liquid/Shopify: how I add jQuery to the page?

I'm having an hard time integrating external jQuery library into my own liquid page. I'd like to load it with the CDN. On the theme.liquid page I load the Javascript this way: <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> {{ 'spot-the-ball.js' | asset_url | script_tag…

VIEW QUESTION
Back To Top
Search