Knowledgebase: General
Is it possible to add a snippet of code within the head tag of my pages?

Some merchants may have special scripting that needs to be placed between the open and closing head tags of their site. For example, scripts like Google Translate and other 3rd party functions will provide a specific code that needs to be placed inside the head tags of the pages.

Fortunately, 3dcart makes this easy to do:

  1. Log into your 3dcart Online Store Manager
  2. Using the left hand navigation menu, go to Settings ->Design ->Themes & Styles
  3. Look towards the top right of the page and click on the "Edit Template (HTML)" button.

You will see a listing of the templates used by your store's selected theme. Within the list of templates, you should see one labeled "frame.html"

  1. Click on the frame.html template to open it up in the Template Editor
  2. Within the HTML coding look for the closing head tag which will look like this:
</head>
  1. Place the Google Translate code immediately before the closing </head>
  2. Click "Save" at the top right of the page to commit your changes.

Tip
It's usually best to add your 3rd party coding directly before the closing </head> tag to prevent it from interfering with existing 3dcart coding. Also, the code is easier to find should you need to revert.


Help Desk Software by Kayako fusion