{"id":10217,"date":"2014-11-28T17:55:03","date_gmt":"2014-11-28T11:55:03","guid":{"rendered":"http:\/\/devstech.com\/?p=10217"},"modified":"2024-12-01T21:54:13","modified_gmt":"2024-12-01T15:54:13","slug":"add-comment-policy-box-genesis","status":"publish","type":"post","link":"https:\/\/www.usefulblogging.com\/add-comment-policy-box-genesis\/","title":{"rendered":"How to Add a Comment Policy Box in Genesis Theme?"},"content":{"rendered":"\n<p>Genesis Framework : In this short tutorial, you&#8217;ll learn about how to <em>Add a Comment Policy Box in Genesis<\/em>. The Genesis Framework empowers you to quickly and easily build incredible websites with WordPress. Whether you&#8217;re a novice or advanced developer, Genesis provides the secure and search-engine-optimized foundation that takes WordPress to places you never thought it could go. In Genesis powered websites you&#8217;ve to modify the child theme which is running on.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Anyway, these code snippets will help you&nbsp;to&nbsp;Add a Comment Policy Box in Genesis Framework.<span id=\"more-10205\"><\/span><span id=\"more-10193\"><\/span><span id=\"more-9992\"><\/span><span id=\"more-9971\"><\/span><span id=\"more-9949\"><\/span><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>Unless otherwise indicated, the code snippets you see below should be placed into your theme\u2019s functions.php file.<\/p><\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">Add a Comment Policy Box in Genesis<\/h2>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Below is the code to Add a Comment Policy Box:<\/strong><br><code>&lt;?php<br>\n\/\/* Do NOT include the opening php tag<br>\n\/\/* Add a comment policy box in comments<br>\nadd_action( 'genesis_after_comments', 'sp_comment_policy' );<br>\nfunction sp_comment_policy() {<br>\nif ( is_single() &amp;&amp; !is_user_logged_in() &amp;&amp; comments_open() ) {<br>\n?&gt;<br>\n&lt;div class=\"comment-policy-box\"&gt;<br>\n&lt;p class=\"comment-policy\"&gt;&lt;small&gt;&lt;strong&gt;Comment Policy:&lt;\/strong&gt;Your words are your own, so be nice and helpful if you can. Please, only use your real name and limit the amount of links submitted in your comment. We accept clean XHTML in comments, but don't overdo it please.&lt;\/small&gt;&lt;\/p&gt;<br>\n&lt;\/div&gt;<br>\n&lt;?php<br>\n}<br>\n}<\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Final Words<\/h2>\n\n\n\n<p>I strongly recommended to take <strong>backup core files<\/strong> before customizing any Genesis Child Theme. Hope the above Genesis Tutorial was helpful and valued for you. Please don&#8217;t forget to share this with social friends and write a comment below if you need any assistance in customizing the look of your WordPress websites.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Genesis Framework : In this short tutorial, you&#8217;ll learn about how to Add a Comment Policy Box in Genesis. The &#8230; <a title=\"How to Add a Comment Policy Box in Genesis Theme?\" class=\"read-more\" href=\"https:\/\/www.usefulblogging.com\/add-comment-policy-box-genesis\/\" aria-label=\"Read more about How to Add a Comment Policy Box in Genesis Theme?\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":31108,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[568,122],"class_list":["post-10217","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-genesis-framework","tag-code-snippets","tag-genesis","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33","no-featured-image-padding"],"_links":{"self":[{"href":"https:\/\/www.usefulblogging.com\/wp-json\/wp\/v2\/posts\/10217","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.usefulblogging.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.usefulblogging.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.usefulblogging.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.usefulblogging.com\/wp-json\/wp\/v2\/comments?post=10217"}],"version-history":[{"count":0,"href":"https:\/\/www.usefulblogging.com\/wp-json\/wp\/v2\/posts\/10217\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.usefulblogging.com\/wp-json\/wp\/v2\/media\/31108"}],"wp:attachment":[{"href":"https:\/\/www.usefulblogging.com\/wp-json\/wp\/v2\/media?parent=10217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.usefulblogging.com\/wp-json\/wp\/v2\/categories?post=10217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.usefulblogging.com\/wp-json\/wp\/v2\/tags?post=10217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}