{"id":37043,"date":"2019-07-23T18:16:24","date_gmt":"2019-07-23T15:16:24","guid":{"rendered":"https:\/\/tuthost.ua\/faq\/how-do-i-add-html-or-javascript-code\/"},"modified":"2024-07-19T22:01:51","modified_gmt":"2024-07-19T19:01:51","slug":"kak-dobavit-kod-html-ili-javascript","status":"publish","type":"ht_kb","link":"https:\/\/tuthost.ua\/en\/faq\/kak-dobavit-kod-html-ili-javascript\/","title":{"rendered":"How do I add HTML or javascript code?"},"content":{"rendered":"<p>If you want to add javascript code to the tag <span>&lt;head&gt; or &lt;body&gt; then click on the gear &#8211; menu item &#8220;Settings&#8221; and there select the tab scripts<\/span>.<\/p>\n<p>You will have three options where you can insert the code:<\/p>\n<ul>\n<li><span>Before &lt;\/head&gt;<\/span><\/li>\n<li><span>Before &lt;\/body&gt;<\/span><\/li>\n<li><span>After &lt;body&gt;<\/span><\/li>\n<\/ul>\n<p>This is used primarily for javascript.<\/p>\n<p>And if you want to insert HTML code in a specific place on the page, then drag and drop the &#8220;More&#8221; block with gears &#8211; on the page in the window that opens, select &#8220;Custom html&#8221;. Then double-click on the block and paste in the desired HTML code.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to add javascript code to the tag &lt;head&gt; or &lt;body&gt; then click on the gear &#8211; menu item &#8220;Settings&#8221; and there select the tab scripts. You will have three options where you can insert the code: Before &lt;\/head&gt; Before &lt;\/body&gt; After &lt;body&gt; This is used primarily for javascript. And if you want&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"inline_featured_image":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","ghostkit_customizer_options":"","ghostkit_custom_css":"","ghostkit_custom_js_head":"","ghostkit_custom_js_foot":"","ghostkit_typography":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"ht-kb-category":[10709],"ht-kb-tag":[],"class_list":["post-37043","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-site-builder"],"taxonomy_info":{"ht_kb_category":[{"value":10709,"label":"Site Builder"}]},"featured_image_src_large":[],"author_info":{"display_name":"Denys Semeniuk","author_link":"https:\/\/tuthost.ua\/en\/author\/semden\/"},"comment_info":0,"_links":{"self":[{"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb\/37043","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/comments?post=37043"}],"version-history":[{"count":1,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb\/37043\/revisions"}],"predecessor-version":[{"id":58398,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb\/37043\/revisions\/58398"}],"wp:attachment":[{"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/media?parent=37043"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb-category?post=37043"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb-tag?post=37043"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}