{"id":6768,"date":"2024-06-26T06:53:15","date_gmt":"2024-06-26T06:53:15","guid":{"rendered":"https:\/\/webnus.net\/shoppress\/helpdesk\/?p=6768"},"modified":"2024-06-26T06:53:16","modified_gmt":"2024-06-26T06:53:16","slug":"override-the-widgets-templates","status":"publish","type":"post","link":"https:\/\/webnus.net\/shoppress\/helpdesk\/override-the-widgets-templates\/","title":{"rendered":"Override the Widgets Templates"},"content":{"rendered":"\n<p>To override a template in your child theme, you need to create a file with the desired template name.<\/p>\n\n\n\n<p>In this example, we will override the product title template.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create a folder named &#8220;shop-press&#8221; in your child theme directory.<\/li>\n\n\n\n<li>Inside the &#8220;shop-press&#8221; folder, create a file named &#8220;product-title.php&#8221;.<\/li>\n<\/ol>\n\n\n\n<p>The path to the new file should be:<br><code>wp-content\/themes\/your_child_theme\/shop-press\/product-title.php<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To override a template in your child theme, you need to create a file with the desired template name. In this example, we will override the product title template. The path to the new file should be:wp-content\/themes\/your_child_theme\/shop-press\/product-title.php<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[96],"tags":[],"class_list":["post-6768","post","type-post","status-publish","format-standard","hentry","category-developer"],"_links":{"self":[{"href":"https:\/\/webnus.net\/shoppress\/helpdesk\/wp-json\/wp\/v2\/posts\/6768","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webnus.net\/shoppress\/helpdesk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webnus.net\/shoppress\/helpdesk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webnus.net\/shoppress\/helpdesk\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/webnus.net\/shoppress\/helpdesk\/wp-json\/wp\/v2\/comments?post=6768"}],"version-history":[{"count":1,"href":"https:\/\/webnus.net\/shoppress\/helpdesk\/wp-json\/wp\/v2\/posts\/6768\/revisions"}],"predecessor-version":[{"id":6769,"href":"https:\/\/webnus.net\/shoppress\/helpdesk\/wp-json\/wp\/v2\/posts\/6768\/revisions\/6769"}],"wp:attachment":[{"href":"https:\/\/webnus.net\/shoppress\/helpdesk\/wp-json\/wp\/v2\/media?parent=6768"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webnus.net\/shoppress\/helpdesk\/wp-json\/wp\/v2\/categories?post=6768"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webnus.net\/shoppress\/helpdesk\/wp-json\/wp\/v2\/tags?post=6768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}