Liquid、JavaScriptなどに関する質問
はじめまして。
テーマ:Dawnを使用しているのですが、
商品写真の左上に表示されるズームアイコンの位置を
右下に変更する場合はどこを変更すればいいでしょうか?
素人質問で恐縮ですが、どなたかご教示いただけますと幸いです。
よろしくお願いいたします。
解決済! ベストソリューションを見る。
成功
以下の手順をお試しください。
1. 管理画面にログインし、[オンラインストア] > [テーマ] に移動します。
2. 「カスタマイズ」の隣の[...] から[コードを編集] をクリックします。
3. 「アセット」フォルダ内のsection-main-product.cssファイルを選択します。
4. 以下のコードを探します。
.product__media-icon,
.thumbnail__badge {
background-color: rgb(var(--color-background));
border-radius: 50%;
border: 0.1rem solid rgba(var(--color-foreground), 0.1);
color: rgb(var(--color-foreground));
display: flex;
align-items: center;
justify-content: center;
height: 3rem;
width: 3rem;
position: absolute;
left: 1.2rem;
top: 1.2rem;
z-index: 1;
transition: color var(--duration-short) ease, opacity var(--duration-short) ease;
}
5. 上記のコードを、以下のように書き換えます。
※変更する点は、left→right、top→bottomの2箇所のみです。
.product__media-icon,
.thumbnail__badge {
background-color: rgb(var(--color-background));
border-radius: 50%;
border: 0.1rem solid rgba(var(--color-foreground), 0.1);
color: rgb(var(--color-foreground));
display: flex;
align-items: center;
justify-content: center;
height: 3rem;
width: 3rem;
position: absolute;
right: 1.2rem;
bottom: 1.2rem;
z-index: 1;
transition: color var(--duration-short) ease,
opacity var(--duration-short) ease;
}
6. 「保存」をクリックして完了です。
コードを編集しますので、事前にバックアップを取るなどのリスク対策をオススメいたします。
成功
以下の手順をお試しください。
1. 管理画面にログインし、[オンラインストア] > [テーマ] に移動します。
2. 「カスタマイズ」の隣の[...] から[コードを編集] をクリックします。
3. 「アセット」フォルダ内のsection-main-product.cssファイルを選択します。
4. 以下のコードを探します。
.product__media-icon,
.thumbnail__badge {
background-color: rgb(var(--color-background));
border-radius: 50%;
border: 0.1rem solid rgba(var(--color-foreground), 0.1);
color: rgb(var(--color-foreground));
display: flex;
align-items: center;
justify-content: center;
height: 3rem;
width: 3rem;
position: absolute;
left: 1.2rem;
top: 1.2rem;
z-index: 1;
transition: color var(--duration-short) ease, opacity var(--duration-short) ease;
}
5. 上記のコードを、以下のように書き換えます。
※変更する点は、left→right、top→bottomの2箇所のみです。
.product__media-icon,
.thumbnail__badge {
background-color: rgb(var(--color-background));
border-radius: 50%;
border: 0.1rem solid rgba(var(--color-foreground), 0.1);
color: rgb(var(--color-foreground));
display: flex;
align-items: center;
justify-content: center;
height: 3rem;
width: 3rem;
position: absolute;
right: 1.2rem;
bottom: 1.2rem;
z-index: 1;
transition: color var(--duration-short) ease,
opacity var(--duration-short) ease;
}
6. 「保存」をクリックして完了です。
コードを編集しますので、事前にバックアップを取るなどのリスク対策をオススメいたします。
早速のご回答ありがとうございました。
おかげさまで、無事に設定変更できました!
サポートの選択肢が増えていく中、最適となる選択の判断が難しくなっているかと存じます。今回は問題の解決に最適となるサポートの選択方法を、紹介させて頂きます。 選択肢のご紹介...
By Mirai Oct 6, 20242023年初頭、Shopifyペイメントアカウント、及びShopifyアカウント全体のセキュリティを強化する為の変更が適用されました。ユーザーのアカウントセキュリティを強化す...
By Mirai Sep 29, 2024概要: 年末/年明けは、消費者が最もショッピングを行う時期の一つです。特に、ブラックフライデー・サイバーマンデー(BFCM)は、世界中で注目される大規模なセールイベントであ...
By JapanGuru Sep 25, 2024