How to create new template in Cornerstone theme using stencil framework












0















I am new to Bigcommerce, I need to create a page template in my Bigcommerce theme (Cornerstone).



I have followed the documentation but its redirected to 404 page. Please help me in this.



I have also tried with the below link but the Url redirected to 404 page
Creating a custom page template in stencil for bigcommerce



Note : I have installed stencil framework in local environment and trying it



https://developer.bigcommerce.com/stencil-docs/template-files/custom-templates/about-custom-templates










share|improve this question





























    0















    I am new to Bigcommerce, I need to create a page template in my Bigcommerce theme (Cornerstone).



    I have followed the documentation but its redirected to 404 page. Please help me in this.



    I have also tried with the below link but the Url redirected to 404 page
    Creating a custom page template in stencil for bigcommerce



    Note : I have installed stencil framework in local environment and trying it



    https://developer.bigcommerce.com/stencil-docs/template-files/custom-templates/about-custom-templates










    share|improve this question



























      0












      0








      0








      I am new to Bigcommerce, I need to create a page template in my Bigcommerce theme (Cornerstone).



      I have followed the documentation but its redirected to 404 page. Please help me in this.



      I have also tried with the below link but the Url redirected to 404 page
      Creating a custom page template in stencil for bigcommerce



      Note : I have installed stencil framework in local environment and trying it



      https://developer.bigcommerce.com/stencil-docs/template-files/custom-templates/about-custom-templates










      share|improve this question
















      I am new to Bigcommerce, I need to create a page template in my Bigcommerce theme (Cornerstone).



      I have followed the documentation but its redirected to 404 page. Please help me in this.



      I have also tried with the below link but the Url redirected to 404 page
      Creating a custom page template in stencil for bigcommerce



      Note : I have installed stencil framework in local environment and trying it



      https://developer.bigcommerce.com/stencil-docs/template-files/custom-templates/about-custom-templates







      bigcommerce cornerstone stencils






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 22 '18 at 13:42







      John Babu

















      asked Nov 22 '18 at 13:35









      John BabuJohn Babu

      103




      103
























          1 Answer
          1






          active

          oldest

          votes


















          0














          One common cause for 404 errors when working with custom templates locally is that the page the custom template has been mapped to isn't a page that exists in the live store. For example, if you map "custom-product.html":"/my-product/" in your .stencil file, you'll need to have created a product page in your live store with the URL /my-product/. The template needs to map to a live page of the same type: if you're creating a webpage, you'll need to map to a real webpage; if you're creating a category page, you'd map the custom template to one of your existing category URLs. Hope this helps!






          share|improve this answer


























          • Thanks for your time and reply Karen. I have upload and applied the theme in my store but still its showing 404page. Can you explain how to map the locally created file to a live stencil framework?

            – John Babu
            Nov 23 '18 at 13:27











          • Hi John, Yes--if you are no longer working locally and have uploaded the theme to your store, assign the custom template to the page from that page's Edit screen within the control panel. The reason for mapping pages in the .stencil file is only to let you preview the custom template with the page while you're working locally. When you're ready to assign templates to the live store, follow these instructions: developer.bigcommerce.com/stencil-docs/template-files/…

            – Karen White
            Nov 23 '18 at 13:44











          • Thanks a lot Karen. Its working fine :)

            – John Babu
            Nov 23 '18 at 14:26











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53432186%2fhow-to-create-new-template-in-cornerstone-theme-using-stencil-framework%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          One common cause for 404 errors when working with custom templates locally is that the page the custom template has been mapped to isn't a page that exists in the live store. For example, if you map "custom-product.html":"/my-product/" in your .stencil file, you'll need to have created a product page in your live store with the URL /my-product/. The template needs to map to a live page of the same type: if you're creating a webpage, you'll need to map to a real webpage; if you're creating a category page, you'd map the custom template to one of your existing category URLs. Hope this helps!






          share|improve this answer


























          • Thanks for your time and reply Karen. I have upload and applied the theme in my store but still its showing 404page. Can you explain how to map the locally created file to a live stencil framework?

            – John Babu
            Nov 23 '18 at 13:27











          • Hi John, Yes--if you are no longer working locally and have uploaded the theme to your store, assign the custom template to the page from that page's Edit screen within the control panel. The reason for mapping pages in the .stencil file is only to let you preview the custom template with the page while you're working locally. When you're ready to assign templates to the live store, follow these instructions: developer.bigcommerce.com/stencil-docs/template-files/…

            – Karen White
            Nov 23 '18 at 13:44











          • Thanks a lot Karen. Its working fine :)

            – John Babu
            Nov 23 '18 at 14:26
















          0














          One common cause for 404 errors when working with custom templates locally is that the page the custom template has been mapped to isn't a page that exists in the live store. For example, if you map "custom-product.html":"/my-product/" in your .stencil file, you'll need to have created a product page in your live store with the URL /my-product/. The template needs to map to a live page of the same type: if you're creating a webpage, you'll need to map to a real webpage; if you're creating a category page, you'd map the custom template to one of your existing category URLs. Hope this helps!






          share|improve this answer


























          • Thanks for your time and reply Karen. I have upload and applied the theme in my store but still its showing 404page. Can you explain how to map the locally created file to a live stencil framework?

            – John Babu
            Nov 23 '18 at 13:27











          • Hi John, Yes--if you are no longer working locally and have uploaded the theme to your store, assign the custom template to the page from that page's Edit screen within the control panel. The reason for mapping pages in the .stencil file is only to let you preview the custom template with the page while you're working locally. When you're ready to assign templates to the live store, follow these instructions: developer.bigcommerce.com/stencil-docs/template-files/…

            – Karen White
            Nov 23 '18 at 13:44











          • Thanks a lot Karen. Its working fine :)

            – John Babu
            Nov 23 '18 at 14:26














          0












          0








          0







          One common cause for 404 errors when working with custom templates locally is that the page the custom template has been mapped to isn't a page that exists in the live store. For example, if you map "custom-product.html":"/my-product/" in your .stencil file, you'll need to have created a product page in your live store with the URL /my-product/. The template needs to map to a live page of the same type: if you're creating a webpage, you'll need to map to a real webpage; if you're creating a category page, you'd map the custom template to one of your existing category URLs. Hope this helps!






          share|improve this answer















          One common cause for 404 errors when working with custom templates locally is that the page the custom template has been mapped to isn't a page that exists in the live store. For example, if you map "custom-product.html":"/my-product/" in your .stencil file, you'll need to have created a product page in your live store with the URL /my-product/. The template needs to map to a live page of the same type: if you're creating a webpage, you'll need to map to a real webpage; if you're creating a category page, you'd map the custom template to one of your existing category URLs. Hope this helps!







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 23 '18 at 13:47

























          answered Nov 23 '18 at 2:56









          Karen WhiteKaren White

          1,2561410




          1,2561410













          • Thanks for your time and reply Karen. I have upload and applied the theme in my store but still its showing 404page. Can you explain how to map the locally created file to a live stencil framework?

            – John Babu
            Nov 23 '18 at 13:27











          • Hi John, Yes--if you are no longer working locally and have uploaded the theme to your store, assign the custom template to the page from that page's Edit screen within the control panel. The reason for mapping pages in the .stencil file is only to let you preview the custom template with the page while you're working locally. When you're ready to assign templates to the live store, follow these instructions: developer.bigcommerce.com/stencil-docs/template-files/…

            – Karen White
            Nov 23 '18 at 13:44











          • Thanks a lot Karen. Its working fine :)

            – John Babu
            Nov 23 '18 at 14:26



















          • Thanks for your time and reply Karen. I have upload and applied the theme in my store but still its showing 404page. Can you explain how to map the locally created file to a live stencil framework?

            – John Babu
            Nov 23 '18 at 13:27











          • Hi John, Yes--if you are no longer working locally and have uploaded the theme to your store, assign the custom template to the page from that page's Edit screen within the control panel. The reason for mapping pages in the .stencil file is only to let you preview the custom template with the page while you're working locally. When you're ready to assign templates to the live store, follow these instructions: developer.bigcommerce.com/stencil-docs/template-files/…

            – Karen White
            Nov 23 '18 at 13:44











          • Thanks a lot Karen. Its working fine :)

            – John Babu
            Nov 23 '18 at 14:26

















          Thanks for your time and reply Karen. I have upload and applied the theme in my store but still its showing 404page. Can you explain how to map the locally created file to a live stencil framework?

          – John Babu
          Nov 23 '18 at 13:27





          Thanks for your time and reply Karen. I have upload and applied the theme in my store but still its showing 404page. Can you explain how to map the locally created file to a live stencil framework?

          – John Babu
          Nov 23 '18 at 13:27













          Hi John, Yes--if you are no longer working locally and have uploaded the theme to your store, assign the custom template to the page from that page's Edit screen within the control panel. The reason for mapping pages in the .stencil file is only to let you preview the custom template with the page while you're working locally. When you're ready to assign templates to the live store, follow these instructions: developer.bigcommerce.com/stencil-docs/template-files/…

          – Karen White
          Nov 23 '18 at 13:44





          Hi John, Yes--if you are no longer working locally and have uploaded the theme to your store, assign the custom template to the page from that page's Edit screen within the control panel. The reason for mapping pages in the .stencil file is only to let you preview the custom template with the page while you're working locally. When you're ready to assign templates to the live store, follow these instructions: developer.bigcommerce.com/stencil-docs/template-files/…

          – Karen White
          Nov 23 '18 at 13:44













          Thanks a lot Karen. Its working fine :)

          – John Babu
          Nov 23 '18 at 14:26





          Thanks a lot Karen. Its working fine :)

          – John Babu
          Nov 23 '18 at 14:26




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53432186%2fhow-to-create-new-template-in-cornerstone-theme-using-stencil-framework%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

          Alcedinidae

          RAC Tourist Trophy