{"id":382,"date":"2018-03-09T03:55:17","date_gmt":"2018-03-09T03:55:17","guid":{"rendered":"http:\/\/www.loftocean.com\/fallsky\/?p=382"},"modified":"2018-09-19T08:21:46","modified_gmt":"2018-09-19T08:21:46","slug":"fallsky-theme-build-in-actions-for-single-post","status":"publish","type":"post","link":"https:\/\/www.loftocean.com\/fallsky\/advanced\/fallsky-theme-build-in-actions-for-single-post\/","title":{"rendered":"Fallsky theme build-in actions for Single Post"},"content":{"rendered":"<p>Fallsky theme build-in actions for single post:<\/p>\n<p><code class=\"darken\">fallsky_before_main_content<\/code> &#8211; insert content inside <code>&lt;div id=\"content\"&gt;<\/code> as the first child.<\/p>\n<p><code class=\"darken\">fallsky_single_post_main_content<\/code> &#8211; insert content inside <code>&lt;div class=\"main\"&gt;<\/code>. Depending on the priority value (less than or greater than 10), the content will be the first or the last child of the tag.<\/p>\n<p><code class=\"darken\">fallsky_after_main_content<\/code> &#8211; add content after <code>&lt;div class=\"main\"&gt;<\/code>.<\/p>\n<p><code class=\"darken\">fallsky_single_post_side_modules<\/code> &#8211; add content after <code>div.main > div.container<\/code>.<\/p>\n<p><code class=\"darken\">fallsky_single_post_after_content_modules<\/code> &#8211; insert content inside <code>div.main > div.container > #primary<\/code> as the last child.<\/p>\n<p><code class=\"darken\">fallsky_site_footer<\/code> &#8211; add content after <code>&lt;div class=\"content\"&gt;<\/code>.<\/p>\n<p>If you want to insert content inside <code>div.main > div.container > #primary .post-entry<\/code>, please use the WP core filter <code class=\"darken\">the_content<\/code>.<\/p>\n<hr>\n<p>Filter may be used in those actions. <\/p>\n<p><code class=\"darken\">fallsky_page_layout<\/code> &#8211; to get the page layout. If the value returned is empty, it means that the page layout is fullwidth. Otherwise the page will have a sidebar.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fallsky theme build-in actions for single post: fallsky_before_main_content &#8211; insert content inside &lt;div id=&#8221;content&#8221;&gt; as the first child. fallsky_single_post_main_content &#8211; insert content inside &lt;div class=&#8221;main&#8221;&gt;. Depending on the priority value (less than or greater than 10), the content will be the first or the last child of the tag. fallsky_after_main_content &#8211; add content after &lt;div [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-382","post","type-post","status-publish","format-standard","hentry","category-advanced"],"_links":{"self":[{"href":"https:\/\/www.loftocean.com\/fallsky\/wp-json\/wp\/v2\/posts\/382","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.loftocean.com\/fallsky\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.loftocean.com\/fallsky\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.loftocean.com\/fallsky\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.loftocean.com\/fallsky\/wp-json\/wp\/v2\/comments?post=382"}],"version-history":[{"count":6,"href":"https:\/\/www.loftocean.com\/fallsky\/wp-json\/wp\/v2\/posts\/382\/revisions"}],"predecessor-version":[{"id":401,"href":"https:\/\/www.loftocean.com\/fallsky\/wp-json\/wp\/v2\/posts\/382\/revisions\/401"}],"wp:attachment":[{"href":"https:\/\/www.loftocean.com\/fallsky\/wp-json\/wp\/v2\/media?parent=382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.loftocean.com\/fallsky\/wp-json\/wp\/v2\/categories?post=382"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.loftocean.com\/fallsky\/wp-json\/wp\/v2\/tags?post=382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}