How to Add Fonts to the Shopify Admin

I need to add custom fonts to the Shopify panel. I added the code in base.css, but they didn’t show up in the panel. How can i do this? @font-face { font-family: “Lexend”, sans-serif; src: url(‘{{ “Lexend-Light.woff2” | asset_url }}’) format(“woff2”), url(‘{{ “Lexend-Light.woff” | asset_url }}’) format(“woff”), url(‘{{ “Lexend-Light.ttf” | asset_url }}’) format(“truetype”); } @font-face… Read More How to Add Fonts to the Shopify Admin

Script not removing class from targeted element

i need some help with the following error, appreciate your answer! I have this code: let removethisone = document.getElementsByClassName(‘kaching-bundles__bar’); function removethat() { console.log(removethisone[0]); let targetedelement = removethisone[0]; console.log(targetedelement); targetedelement.classList.remove(‘kaching-bundles__bar–variants-hidden’) } removethat() When I refresh the website, I get this error in the console: Uncaught TypeError: Cannot read properties of undefined (reading ‘classList’) I’m trying to… Read More Script not removing class from targeted element

"Unexpected {" shopify admin api get request in php

I’m trying to issue a get request in php with the shopify admin api. $productId = "11235813213455" // `session` is built as part of the OAuth process $client = new Shopify\Clients\Rest( $session->getShop(), $session->getAccessToken() ); $response = $client->get({ path: "products/$productId", query: ["id" => 1, "title" => "title"] }); It says that there is an unexpected {.… Read More "Unexpected {" shopify admin api get request in php

The height of the grid layout is not the same as the height of the content

The preview URL: https://asilklife.myshopify.com/?preview_theme_id=132753031414 The size of the image is 800px x 800px, why the height of the grid’s container is always 6px more. <div class=”grid-wrapper”> <div class=”wrapper-item”> <img src=”https://cdn.shopify.com/s/files/1/0512/8126/4829/files/9.jpg?v=1652633500&#8243; /> </div> <div class=”wrapper-item”> <img src=”https://cdn.shopify.com/s/files/1/0512/8126/4829/files/9.jpg?v=1652633500&#8243; /> </div> <div class=”wrapper-item”> <img src=”https://cdn.shopify.com/s/files/1/0512/8126/4829/files/9.jpg?v=1652633500&#8243; /> </div> <div class=”wrapper-item”> <img src=”https://cdn.shopify.com/s/files/1/0512/8126/4829/files/9.jpg?v=1652633500&#8243; /> </div> </div> <style type=”text/css”> .grid-wrapper {… Read More The height of the grid layout is not the same as the height of the content