{"id":578,"date":"2010-12-16T22:41:16","date_gmt":"2010-12-16T20:41:16","guid":{"rendered":"http:\/\/www.kavdesign.net\/blog\/?p=578"},"modified":"2010-12-16T22:52:44","modified_gmt":"2010-12-16T20:52:44","slug":"how-to-add-a-banner-or-something-into-thesis-open-hook-but-only-visible-in-a-post","status":"publish","type":"post","link":"https:\/\/www.kavdesign.net\/blog\/coding\/how-to-add-a-banner-or-something-into-thesis-open-hook-but-only-visible-in-a-post\/","title":{"rendered":"How to add a banner or something into Thesis Open Hook, but only visible in a post?"},"content":{"rendered":"<p>Just add this lines in the hook text:<\/p>\n<pre>&lt;?php\r\nif (is_single( )) {\r\nbanner here...\r\n&lt;?php } ?&gt;<\/pre>\n<p>Don&#8217;t forget to allow php execution.<\/p>\n<p>Here&#8217;s one related article: <a href=\"http:\/\/www.berchman.com\/thesis-tutorial-custom-after-the-post-box\/\" target=\"_blank\">http:\/\/www.berchman.com\/thesis-tutorial-custom-after-the-post-box\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just add this lines in the hook text: &lt;?php if (is_single( )) { banner here&#8230; &lt;?php } ?&gt; Don&#8217;t forget to allow php execution. Here&#8217;s&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/www.kavdesign.net\/blog\/coding\/how-to-add-a-banner-or-something-into-thesis-open-hook-but-only-visible-in-a-post\/\">Continue reading<span class=\"screen-reader-text\">How to add a banner or something into Thesis Open Hook, but only visible in a post?<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[9,82],"tags":[145,147,144,146,418],"class_list":["post-578","post","type-post","status-publish","format-standard","hentry","category-coding","category-wordpress","tag-open-hook","tag-post","tag-thesis","tag-thesis-open-hook","tag-wordpress","entry"],"_links":{"self":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts\/578","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/comments?post=578"}],"version-history":[{"count":4,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts\/578\/revisions"}],"predecessor-version":[{"id":583,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts\/578\/revisions\/583"}],"wp:attachment":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/media?parent=578"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/categories?post=578"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/tags?post=578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}