{"id":61,"date":"2007-09-10T20:38:16","date_gmt":"2007-09-10T20:38:16","guid":{"rendered":"http:\/\/sketharaman.com\/blog\/?p=61"},"modified":"2010-04-06T03:19:28","modified_gmt":"2010-04-05T17:19:28","slug":"how-to-insert-html-code-into-blog-templates","status":"publish","type":"post","link":"https:\/\/sketharaman.com\/blog\/2007\/09\/10\/how-to-insert-html-code-into-blog-templates\/","title":{"rendered":"How To Embed HTML Code Into Blog Posts"},"content":{"rendered":"<p>Bloggers come across several interesting applications and widgets that can be embedded into their own posts. Examples include <a href=\"https:\/\/www.google.com\/adsense\/\">Google Adsense<\/a>, <a href=\"http:\/\/www.jobcoin.com\/\">JobCoin<\/a>, <a href=\"http:\/\/www.feedjit.com\/\">Feedjit<\/a>, and so on. You can learn more about these by clicking their respective hyperlinks. Each application or widget typically provides you with some HTML code (&#8220;third-party code&#8221;) which you need to insert into your blog to activate it.<\/p>\n<p>Now, if you can remember to repeatedly insert *all* third-party code into *each* of your blog posts, then you needn&#8217;t read this post any further. However, should you, like me, want a method by which you insert third-party code just once and make it appear automatically in each of your posts, then you&#8217;ve come to the right place.<\/p>\n<p>Inserting third-party HTML code is not very straight-forward, at least not in WordPress blogs. It entails figuring out the right blog template first and then inserting the code at the right place inside it.<\/p>\n<p>After some research and some trial-and-error, I arrived at the following solution:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"margin: 5px\" src=\"http:\/\/sketharaman.com\/blog\/wp-content\/uploads\/2007\/09\/pic13.gif\" alt=\"\" width=\"365\" height=\"386\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"margin: 5px\" src=\"http:\/\/sketharaman.com\/blog\/wp-content\/uploads\/2007\/09\/pic3.gif\" alt=\"\" width=\"426\" height=\"165\" \/><\/p>\n<p>Hope WordPress bloggers out there find this useful!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bloggers come across several interesting applications and widgets that can be embedded into their own posts. Examples include Google Adsense, JobCoin, Feedjit, and so on. You can learn more about&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-61","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/sketharaman.com\/blog\/wp-json\/wp\/v2\/posts\/61","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sketharaman.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sketharaman.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sketharaman.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sketharaman.com\/blog\/wp-json\/wp\/v2\/comments?post=61"}],"version-history":[{"count":0,"href":"https:\/\/sketharaman.com\/blog\/wp-json\/wp\/v2\/posts\/61\/revisions"}],"wp:attachment":[{"href":"https:\/\/sketharaman.com\/blog\/wp-json\/wp\/v2\/media?parent=61"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sketharaman.com\/blog\/wp-json\/wp\/v2\/categories?post=61"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sketharaman.com\/blog\/wp-json\/wp\/v2\/tags?post=61"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}