{"id":1278,"date":"2014-09-25T10:48:10","date_gmt":"2014-09-25T10:48:10","guid":{"rendered":"https:\/\/ibex.tech\/cloud\/?p=1278"},"modified":"2022-02-17T07:14:02","modified_gmt":"2022-02-17T07:14:02","slug":"add-your-own-footer-into-footer-php","status":"publish","type":"post","link":"https:\/\/ibex.tech\/cloud\/wordpress\/themes-wordpress\/child-themes\/add-your-own-footer-into-footer-php","title":{"rendered":"Add your own footer into footer.php"},"content":{"rendered":"<p>\nTo avoid needing to copy the footer.php file into your child theme and customize it you can use a function in your child theme functions.php file instead:\n<\/p>\n<pre>\r\n<code>\r\nadd_action(&#39;wp_footer&#39;, &#39;my_custom_footer&#39;);\r\nfunction my_custom_footer(){\r\n    \/\/Close PHP tags \r\n    ?&gt;\r\n    ADD YOUR PLAIN HTML CODE HERE\r\n    &lt;?php \/\/Open PHP tags\r\n}\r\n<\/code><\/pre>\n<p>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To avoid needing to copy the footer.php file into your child theme and customize it you can use a function in your child theme functions.php file instead: add_action(&#39;wp_footer&#39;, &#39;my_custom_footer&#39;); function my_custom_footer(){ \/\/Close PHP tags ?&gt; ADD YOUR PLAIN HTML CODE HERE &lt;?php \/\/Open PHP tags } &nbsp;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[126],"tags":[],"class_list":["post-1278","post","type-post","status-publish","format-standard","hentry","category-child-themes"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/1278","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/comments?post=1278"}],"version-history":[{"count":2,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/1278\/revisions"}],"predecessor-version":[{"id":1280,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/1278\/revisions\/1280"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/media?parent=1278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/categories?post=1278"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/tags?post=1278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}