{"id":16645,"date":"2022-03-08T22:18:51","date_gmt":"2022-03-08T21:18:51","guid":{"rendered":"https:\/\/www.wp-amazon-plugin.com\/?post_type=knowledgebase&#038;p=16645"},"modified":"2022-03-08T22:18:51","modified_gmt":"2022-03-08T21:18:51","slug":"how-can-i-create-a-custom-template-for-the-product-pages","status":"publish","type":"knowledgebase","link":"https:\/\/www.wp-amazon-plugin.com\/de\/knowledge-base\/asa2\/templates\/how-can-i-create-a-custom-template-for-the-product-pages\/","title":{"rendered":"How can I create a custom template for the product pages"},"content":{"rendered":"<p>Basically you have to create a custom <strong>single.php<\/strong> file in your theme directory which points to the custom post type. In the case of ASA2 product page, you have to insert configured product page slug which is &#8222;asa2_repo&#8220; by default. The slug can be adjusted by ASA2&#8217;s option &#8222;Product pages slug&#8220; section &#8222;products&#8220;.<\/p>\n<p>The recommended way to create your own template would be to copy the file single.php in the root directory of your theme and name it <strong>single-asa2_repo.php<\/strong>. If you use a custom slug as described above, enter this instead of &#8222;asa2_repo&#8220;. Then you can do your adjustments inside this file. WP will automatically use this file when displaying your product pages.<\/p>\n<p>Selecting different templates as we know it from the default pages is unfortunately not possible for custom pages.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Basically you have to create a custom single.php file in your theme directory which points to the custom post type. In the case of ASA2 product page, you have to insert configured product page slug which is &#8222;asa2_repo&#8220; by default. The slug can be adjusted by ASA2&#8217;s option &#8222;Product pages slug&#8220; section &#8222;products&#8220;. The recommended way to create your own &#8230; <\/p>\n<div><a href=\"https:\/\/www.wp-amazon-plugin.com\/de\/knowledge-base\/asa2\/templates\/how-can-i-create-a-custom-template-for-the-product-pages\/\" class=\"more-link\">Read More<\/a><\/div>\n","protected":false},"author":1170,"featured_media":0,"comment_status":"open","ping_status":"open","template":"","knowledgebase_cat":[213],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How can I create a custom template for the product pages - Amazon Simple Affiliate<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wp-amazon-plugin.com\/knowledge-base\/asa2\/templates\/how-can-i-create-a-custom-template-for-the-product-pages\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How can I create a custom template for the product pages - Amazon Simple Affiliate\" \/>\n<meta property=\"og:description\" content=\"Basically you have to create a custom single.php file in your theme directory which points to the custom post type. In the case of ASA2 product page, you have to insert configured product page slug which is &#8222;asa2_repo&#8220; by default. The slug can be adjusted by ASA2&#8217;s option &#8222;Product pages slug&#8220; section &#8222;products&#8220;. The recommended way to create your own ... Read More\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wp-amazon-plugin.com\/knowledge-base\/asa2\/templates\/how-can-i-create-a-custom-template-for-the-product-pages\/\" \/>\n<meta property=\"og:site_name\" content=\"Amazon Simple Affiliate\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/wpasa2\/\" \/>\n<meta property=\"og:image\" content=\"https:\/\/d1uajaf4ht87ft.cloudfront.net\/wp-content\/uploads\/2017\/12\/04220936\/asa2-logo-400.png\" \/>\n\t<meta property=\"og:image:width\" content=\"400\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@ifeelwebde\" \/>\n<meta name=\"twitter:label1\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data1\" content=\"1\u00a0Minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wp-amazon-plugin.com\/knowledge-base\/asa2\/templates\/how-can-i-create-a-custom-template-for-the-product-pages\/\",\"url\":\"https:\/\/www.wp-amazon-plugin.com\/knowledge-base\/asa2\/templates\/how-can-i-create-a-custom-template-for-the-product-pages\/\",\"name\":\"How can I create a custom template for the product pages - Amazon Simple Affiliate\",\"isPartOf\":{\"@id\":\"https:\/\/www.wp-amazon-plugin.com\/#website\"},\"datePublished\":\"2022-03-08T21:18:51+00:00\",\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wp-amazon-plugin.com\/knowledge-base\/asa2\/templates\/how-can-i-create-a-custom-template-for-the-product-pages\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wp-amazon-plugin.com\/#website\",\"url\":\"https:\/\/www.wp-amazon-plugin.com\/\",\"name\":\"Amazon Simple Affiliate\",\"description\":\"Upgrade your WordPress Affiliate skills!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wp-amazon-plugin.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How can I create a custom template for the product pages - Amazon Simple Affiliate","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wp-amazon-plugin.com\/knowledge-base\/asa2\/templates\/how-can-i-create-a-custom-template-for-the-product-pages\/","og_locale":"de_DE","og_type":"article","og_title":"How can I create a custom template for the product pages - Amazon Simple Affiliate","og_description":"Basically you have to create a custom single.php file in your theme directory which points to the custom post type. In the case of ASA2 product page, you have to insert configured product page slug which is &#8222;asa2_repo&#8220; by default. The slug can be adjusted by ASA2&#8217;s option &#8222;Product pages slug&#8220; section &#8222;products&#8220;. The recommended way to create your own ... Read More","og_url":"https:\/\/www.wp-amazon-plugin.com\/knowledge-base\/asa2\/templates\/how-can-i-create-a-custom-template-for-the-product-pages\/","og_site_name":"Amazon Simple Affiliate","article_publisher":"https:\/\/www.facebook.com\/wpasa2\/","og_image":[{"width":400,"height":400,"url":"https:\/\/d1uajaf4ht87ft.cloudfront.net\/wp-content\/uploads\/2017\/12\/04220936\/asa2-logo-400.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_site":"@ifeelwebde","twitter_misc":{"Gesch\u00e4tzte Lesezeit":"1\u00a0Minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wp-amazon-plugin.com\/knowledge-base\/asa2\/templates\/how-can-i-create-a-custom-template-for-the-product-pages\/","url":"https:\/\/www.wp-amazon-plugin.com\/knowledge-base\/asa2\/templates\/how-can-i-create-a-custom-template-for-the-product-pages\/","name":"How can I create a custom template for the product pages - Amazon Simple Affiliate","isPartOf":{"@id":"https:\/\/www.wp-amazon-plugin.com\/#website"},"datePublished":"2022-03-08T21:18:51+00:00","inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wp-amazon-plugin.com\/knowledge-base\/asa2\/templates\/how-can-i-create-a-custom-template-for-the-product-pages\/"]}]},{"@type":"WebSite","@id":"https:\/\/www.wp-amazon-plugin.com\/#website","url":"https:\/\/www.wp-amazon-plugin.com\/","name":"Amazon Simple Affiliate","description":"Upgrade your WordPress Affiliate skills!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wp-amazon-plugin.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"}]}},"_links":{"self":[{"href":"https:\/\/www.wp-amazon-plugin.com\/de\/wp-json\/wp\/v2\/knowledgebase\/16645"}],"collection":[{"href":"https:\/\/www.wp-amazon-plugin.com\/de\/wp-json\/wp\/v2\/knowledgebase"}],"about":[{"href":"https:\/\/www.wp-amazon-plugin.com\/de\/wp-json\/wp\/v2\/types\/knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/www.wp-amazon-plugin.com\/de\/wp-json\/wp\/v2\/users\/1170"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wp-amazon-plugin.com\/de\/wp-json\/wp\/v2\/comments?post=16645"}],"version-history":[{"count":1,"href":"https:\/\/www.wp-amazon-plugin.com\/de\/wp-json\/wp\/v2\/knowledgebase\/16645\/revisions"}],"predecessor-version":[{"id":16646,"href":"https:\/\/www.wp-amazon-plugin.com\/de\/wp-json\/wp\/v2\/knowledgebase\/16645\/revisions\/16646"}],"wp:attachment":[{"href":"https:\/\/www.wp-amazon-plugin.com\/de\/wp-json\/wp\/v2\/media?parent=16645"}],"wp:term":[{"taxonomy":"knowledgebase_cat","embeddable":true,"href":"https:\/\/www.wp-amazon-plugin.com\/de\/wp-json\/wp\/v2\/knowledgebase_cat?post=16645"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}