You can write code that will only execute on specific pages of your storefront (for example, product pages only, category pages only, etc.). As always, please archive your theme before making any changes.

After you've written your page-specific code, paste it into the script provided below. Then, put the full script (with your custom code) into your template_xx.html file, where "xx" is the name or ID number of your theme, at Design > File Editor > Shortcuts.

<script type="text/javascript">
var Page = PageName() || 'default.asp';
if(Page === 'productdetails.asp') {
 //code for Product Pages Here
} else if(Page === 'searchresults.asp') {
 //code For Category/Search pages here
} else if(Page === 'default.asp') {
 //Code for homepage
Did this answer your question?