<p>To edit the HTML code for your Craft site you're going to want to edit the appropriate template file in your Craft install. If you're running on Craft 2 your template files can be found in <code>.craft/templates/</code>; if you're on Craft 3 your templates are found in <code>./templates/</code>.</p>

<p>You'll need to look in the Craft control panel and see which twig template the section containing the entry (or page) you're trying to edit references. You'll find that info if you try to edit the respective section in <code>Settings &gt; Sections</code>.</p>

<p>I will mention as well, if you're looking to include some code that belongs in the HEAD of the html, you'll probably find that in a "master" twig template that contains the <code>&lt;head&gt;&lt;/head&gt;</code>. Once you find the twig template specified in the section settings in the Craft control panel, most of the time you'll see an <a href="https://twig.symfony.com/doc/2.x/tags/extends.html" rel="nofollow noreferrer"><code>{% extends %}</code> tag</a> which links back to that "base" template.</p>

<p>Hopefully that helps! I'd recommend maybe reading through the Craft docs, starting with <a href="https://craftcms.com/docs/templating-overview" rel="nofollow noreferrer">Templating Overview</a>. Cheers!</p>

CC BY-SA 3.0
2018-02-26T22:13:28.723Z
Thank you Jalen!  Unfortunately, I will have to find a Craft consultant -- when I sign into the site, I only see my dashboard with entries, assets, etc - no templates.  I appreciate your help.
user8055
CC BY-SA 3.0
2018-02-26T22:37:47.680Z
Thank you again!  I checked the section and can see the page I want to change; however, there is no code, just boxes.  I am afraid this is something I shouldn't touch -- last thing I want to do is mess up the website :-) I will try to find a Craft consultant.  Thanks!
user8055
CC BY-SA 3.0
2018-02-26T22:44:48.143Z
@user8055 yeah no worries! I'd be happy to help you with the project if you're interested; just ping me at contact[at]dominion-designs.com and we can discuss...
Jalen Davenport
CC BY-SA 3.0
2018-02-26T20:02:41.323Z
2018-02-26T20:02:41.323Z
Jalen Davenport
<p>Find the appropriate template in your <code>craft/templates</code> folder, and add it there.</p>

<p>If you want it to appear on every page, you'll likely put it in a <code>_layout</code> or shared footer template.</p>

CC BY-SA 3.0
2018-02-26T22:13:56.320Z
Thank you Lindsey! Unfortunately, I will have to find a Craft consultant -- when I sign into the site, I only see my dashboard with entries, assets, etc - no templates.  I appreciate your help.
user8055
CC BY-SA 3.0
2018-02-26T22:15:37.007Z
The templates are physical files. You'll need to FTP into the site (or access the files in another way). It's not accessible directly via the Control Panel.
Lindsey D
CC BY-SA 3.0
2018-02-26T20:02:37.260Z
2018-02-26T20:02:37.260Z
Lindsey D
<p>I want to add a Comodo Trust Logo to a Craft CMS website page per the instructions below:</p>
<blockquote>
<p><strong>Install Code Snippets</strong></p>
<p>Please insert the following two snippets of HTML
code into your webpage document. You will need to repeat the process
for each web page you wish to display the TrustLogo.</p>
<pre><code>&lt;script type=&quot;text/javascript&quot;&gt;//&lt;![CDATA[
var tlJsHost = ((window.location.protocol == &quot;https:&quot;) ? &quot;https://secure.comodo.com/&quot; : &quot;http://www.trustlogo.com/&quot;);
document.write(unescape(&quot;%3Cscript src='&quot; + tlJsHost + &quot;trustlogo/javascript/trustlogo.js' type='text/javascript'%3E%3C/script%3E&quot;));
//]]&gt;
&lt;/script&gt;
</code></pre>
</blockquote>
<p>How do I access the Craft CMS code in order to add the above JS?</p>
<p>Thank you!</p>

<templating>
How do I add html code to a page
# How do I add html code to a page

(Asked by: username_0 on 2018-02-26)

I want to add a Comodo Trust Logo to a Craft CMS website page per the instructions below:

Install Code Snippets
Please insert the following two snippets of HTML
code into your webpage document. You will need to repeat the process
for each web page you wish to display the TrustLogo.



How do I access the Craft CMS code in order to add the above JS?
Thank you!

**Tags:** templating


---

## 2 answers

### Answer by username_1 on 2018-02-26. Score: 3 | Accepted answer

To edit the HTML code for your Craft site you're going to want to edit the appropriate template file in your Craft install. If you're running on Craft 2 your template files can be found in `.craft/templates/`; if you're on Craft 3 your templates are found in `./templates/`.

You'll need to look in the Craft control panel and see which twig template the section containing the entry (or page) you're trying to edit references. You'll find that info if you try to edit the respective section in `Settings > Sections`.

I will mention as well, if you're looking to include some code that belongs in the HEAD of the html, you'll probably find that in a "master" twig template that contains the . Once you find the twig template specified in the section settings in the Craft control panel, most of the time you'll see an [`{% extends %}` tag](https://twig.symfony.com/doc/2.x/tags/extends.html) which links back to that "base" template.

Hopefully that helps! I'd recommend maybe reading through the Craft docs, starting with [Templating Overview](https://craftcms.com/docs/templating-overview). Cheers!

> **Comments:**
> **username_0**: Thank you Jalen!  Unfortunately, I will have to find a Craft consultant -- when I sign into the site, I only see my dashboard with entries, assets, etc - no templates.  I appreciate your help.  
> **username_0**: Thank you again!  I checked the section and can see the page I want to change; however, there is no code, just boxes.  I am afraid this is something I shouldn't touch -- last thing I want to do is mess up the website :-) I will try to find a Craft consultant.  Thanks!  
> **username_1**: @username_0 yeah no worries! I'd be happy to help you with the project if you're interested; just ping me at contact[at]dominion-designs.com and we can discuss...  

---

### Answer by username_2 on 2018-02-26. Score: 2

Find the appropriate template in your `craft/templates` folder, and add it there.

If you want it to appear on every page, you'll likely put it in a `_layout` or shared footer template.

> **Comments:**
> **username_0**: Thank you Lindsey! Unfortunately, I will have to find a Craft consultant -- when I sign into the site, I only see my dashboard with entries, assets, etc - no templates.  I appreciate your help.  
> **username_2**: The templates are physical files. You'll need to FTP into the site (or access the files in another way). It's not accessible directly via the Control Panel.  

---

