カスタムJavaScriptスニペットをInstagram Feedプラグインで使用するには、以下の方法を使用することをお勧めします:
1) WPCodeプラグイン(旧称Insert Headers and Footers)をインストールします。WordPressのプラグインページで 新規追加をクリックし、プラグイン名を検索してください。
2)WPCodeをインストールし、有効化したら、WordPressダッシュボード > Code Snippets >Header and Footerに移動します。
3) Use the following format to add your custom JavaScript snippet into the Footer section. Ensure that you include the entire code block, including the opening and closing <script> tags, as shown below.
<!-- Custom Instagram Feed JS -->
<script type="text/javascript">
window.sbi_custom_js = function(){
$ = jQuery;
// Custom JS here
}
</script>
例として以下のスクリーンショットをご覧ください:
4)カスタムJavaScriptスニペットの追加が完了したら、変更を保存してください。
