ShareThis' BigCommerceにツールをインストールする方法
In order for ShareThis tools to work on your BigCommerce website, follow the steps below to add your unique ShareThis code to the <head> section of your website:
- Log in or sign up to the ShareThis プラットフォーム.
- Add your domain.
- Copy your unique ShareThis installation script.
- You can find it in Step 1 of any App page (e.g., Inline Share Buttons, Sticky Share Buttons, Follow Buttons).
- Or, you can find the same script in Settings → Setup inside the Platform.
- BigCommerceのウェブサイトにログインしてください。
- 左側のナビゲーションバーで、「Storefront」を選択し、「Script Manager」を選択します。
- Script Managerで、Create a Scriptを選択します。
- 以下のアップデートを適用します。
- スクリプトの名前 ShareThis
- スクリプトタイプ。選択肢をスクリプト に変更
- Script contents: Paste the unique ShareThis code that you copied from step
- Save」をクリックします。
- In the ShareThis Platform, open the app you want to use and click Enable App to activate it on your site.
- (Optional but recommended) Customize your app.
- Choose between Smart Share Buttons or manual selection of networks.
- Adjust colors to match your brand.
- Set button size, shape, alignment, and enable share counts if desired.
インラインShareThis ツールの追加
インラインツールは、あなたのサイトで動作するようにコードの余分なスニペットを必要とします。インライン共有ボタン、フォローボタン、反応ボタン、ソーシャルフィードツールをウェブサイトにインストールしたい場合は、ツールを表示したい場所に配置コードを追加する必要があります。
- ShareThis プラットフォームで、使用するShareThis ツールを選択し、配置コードをコピーします。インストールするツールによっては、以下のようなコードになるはずです。
- BigCommerceウェブサイトの左側のナビゲーションバーで、「Storefront」を選択し、続いて「Web Pages」を選択します。
- Webサイトのページ(ブログ、製品など)に移動し、「Webページの詳細」セクションのHTMLアイコンをクリックします。
- 手順1でコピーした固有のShareThis コードを、ShareThis ツールを表示させたい場所に貼り付けます。
- Update」をクリックします。
コードブロックを使ったインラインShareThis ツールの追加(代替方法)
- ページのページビルダーエディタに移動します。
- 左サイドバーの「ウィジェット」を選択し、ボタンを表示させたい場所にHTMLのものをドラッグ&ドロップしてください。
- ShareThis Platformからコピーした配置コードをHTMLエディタに貼り付けます。
- Save」をクリックします。
注:ShareThis ツールは、ウェブサイトのバックエンドに表示されない場合がありますので、表示するには公開されているウェブサイトにアクセスする必要があります。
