How to edit file in app/design/frontend without having to redeploy static content in Magento2?












1















Using Magento2, version 2.19



We are editing below file:




app/design/frontend/xx/xxxxx/Magento_Newsletter/templates/subscribe_popup.phtml




How can I show the changes to this file in the frontend of the site, without having to redeploy the static files from command line every time?










share|improve this question





























    1















    Using Magento2, version 2.19



    We are editing below file:




    app/design/frontend/xx/xxxxx/Magento_Newsletter/templates/subscribe_popup.phtml




    How can I show the changes to this file in the frontend of the site, without having to redeploy the static files from command line every time?










    share|improve this question



























      1












      1








      1








      Using Magento2, version 2.19



      We are editing below file:




      app/design/frontend/xx/xxxxx/Magento_Newsletter/templates/subscribe_popup.phtml




      How can I show the changes to this file in the frontend of the site, without having to redeploy the static files from command line every time?










      share|improve this question
















      Using Magento2, version 2.19



      We are editing below file:




      app/design/frontend/xx/xxxxx/Magento_Newsletter/templates/subscribe_popup.phtml




      How can I show the changes to this file in the frontend of the site, without having to redeploy the static files from command line every time?







      magento2 static-content static-content-deploy






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 9 '17 at 19:18







      MagentoMac

















      asked Nov 9 '17 at 18:57









      MagentoMacMagentoMac

      61431333




      61431333






















          2 Answers
          2






          active

          oldest

          votes


















          2














          Yeah this can be done from within the below folder:



          var/view_preprocessed/pub/static/app/design/frontend/vendor/theme



          Modify the file within there and it will update instantly after a cache flush to remove any static block cache's or full page caches that the changes may also be stuck within. It's also worth updating the original files so they are not overwritten to the originals at any later static content deployment.






          share|improve this answer































            0














            You don't need to run the setup:static-content:deploy commamd every time to show the changes of phtml file. If your theme is perfectly created and the cache is refreshed successfully, then your changes will be displayed in the frontend.






            share|improve this answer
























            • Ok, but they're not..... the file is being edited in the location detailed above. Cache is being cleared in normal fashion. So why are changes not appearing in frontend? I can only get the changes to occur is static content is redeployed as I say.

              – MagentoMac
              Nov 9 '17 at 19:17











            • Updated question to detail we are using Magento version 2, not Magento1!! Fairly obvious thing I forgot to mention.... long day.... should also have mentioned we have JS and CSS minified. Is that causing the issue? My understanding for Magento2 is that the files need to be edited in the /pub folder. If in app/design folder, then they need to be redeployed to be updated in frontend?

              – MagentoMac
              Nov 9 '17 at 19:21











            • Pub folder only consists css, images, js and fonts files. You need to run deploy command if only you add or edit css,js,images or fonts in app/design folder. If you are editing only phtml file then it doesn't need to run deploy command

              – user60655
              Nov 9 '17 at 19:24











            • Ok, so in this example, I am only editing the subscribe_popup.phtml file, so why is the frontend not updating after clearing cache? It's a theme file, not Magento core file. Tried clearing cache via Magento admin, and deleting cache folder in /var folder, but no change in frontend like I say

              – MagentoMac
              Nov 9 '17 at 19:32











            • This isn't the answer to this question and the question really still needs an answer. Have searched similar questions in this network, but nobody asking the exact same question and no answer out there as far as I can see. I think you need to redeploy the static content, but would like an answer either way to confirm from somebody who is 100% sure and can maybe even explain why?

              – MagentoMac
              Nov 10 '17 at 16:43











            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "479"
            };
            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: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            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%2fmagento.stackexchange.com%2fquestions%2f200816%2fhow-to-edit-file-in-app-design-frontend-without-having-to-redeploy-static-conten%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            Yeah this can be done from within the below folder:



            var/view_preprocessed/pub/static/app/design/frontend/vendor/theme



            Modify the file within there and it will update instantly after a cache flush to remove any static block cache's or full page caches that the changes may also be stuck within. It's also worth updating the original files so they are not overwritten to the originals at any later static content deployment.






            share|improve this answer




























              2














              Yeah this can be done from within the below folder:



              var/view_preprocessed/pub/static/app/design/frontend/vendor/theme



              Modify the file within there and it will update instantly after a cache flush to remove any static block cache's or full page caches that the changes may also be stuck within. It's also worth updating the original files so they are not overwritten to the originals at any later static content deployment.






              share|improve this answer


























                2












                2








                2







                Yeah this can be done from within the below folder:



                var/view_preprocessed/pub/static/app/design/frontend/vendor/theme



                Modify the file within there and it will update instantly after a cache flush to remove any static block cache's or full page caches that the changes may also be stuck within. It's also worth updating the original files so they are not overwritten to the originals at any later static content deployment.






                share|improve this answer













                Yeah this can be done from within the below folder:



                var/view_preprocessed/pub/static/app/design/frontend/vendor/theme



                Modify the file within there and it will update instantly after a cache flush to remove any static block cache's or full page caches that the changes may also be stuck within. It's also worth updating the original files so they are not overwritten to the originals at any later static content deployment.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 15 at 14:00









                harriharri

                2,8791448




                2,8791448

























                    0














                    You don't need to run the setup:static-content:deploy commamd every time to show the changes of phtml file. If your theme is perfectly created and the cache is refreshed successfully, then your changes will be displayed in the frontend.






                    share|improve this answer
























                    • Ok, but they're not..... the file is being edited in the location detailed above. Cache is being cleared in normal fashion. So why are changes not appearing in frontend? I can only get the changes to occur is static content is redeployed as I say.

                      – MagentoMac
                      Nov 9 '17 at 19:17











                    • Updated question to detail we are using Magento version 2, not Magento1!! Fairly obvious thing I forgot to mention.... long day.... should also have mentioned we have JS and CSS minified. Is that causing the issue? My understanding for Magento2 is that the files need to be edited in the /pub folder. If in app/design folder, then they need to be redeployed to be updated in frontend?

                      – MagentoMac
                      Nov 9 '17 at 19:21











                    • Pub folder only consists css, images, js and fonts files. You need to run deploy command if only you add or edit css,js,images or fonts in app/design folder. If you are editing only phtml file then it doesn't need to run deploy command

                      – user60655
                      Nov 9 '17 at 19:24











                    • Ok, so in this example, I am only editing the subscribe_popup.phtml file, so why is the frontend not updating after clearing cache? It's a theme file, not Magento core file. Tried clearing cache via Magento admin, and deleting cache folder in /var folder, but no change in frontend like I say

                      – MagentoMac
                      Nov 9 '17 at 19:32











                    • This isn't the answer to this question and the question really still needs an answer. Have searched similar questions in this network, but nobody asking the exact same question and no answer out there as far as I can see. I think you need to redeploy the static content, but would like an answer either way to confirm from somebody who is 100% sure and can maybe even explain why?

                      – MagentoMac
                      Nov 10 '17 at 16:43
















                    0














                    You don't need to run the setup:static-content:deploy commamd every time to show the changes of phtml file. If your theme is perfectly created and the cache is refreshed successfully, then your changes will be displayed in the frontend.






                    share|improve this answer
























                    • Ok, but they're not..... the file is being edited in the location detailed above. Cache is being cleared in normal fashion. So why are changes not appearing in frontend? I can only get the changes to occur is static content is redeployed as I say.

                      – MagentoMac
                      Nov 9 '17 at 19:17











                    • Updated question to detail we are using Magento version 2, not Magento1!! Fairly obvious thing I forgot to mention.... long day.... should also have mentioned we have JS and CSS minified. Is that causing the issue? My understanding for Magento2 is that the files need to be edited in the /pub folder. If in app/design folder, then they need to be redeployed to be updated in frontend?

                      – MagentoMac
                      Nov 9 '17 at 19:21











                    • Pub folder only consists css, images, js and fonts files. You need to run deploy command if only you add or edit css,js,images or fonts in app/design folder. If you are editing only phtml file then it doesn't need to run deploy command

                      – user60655
                      Nov 9 '17 at 19:24











                    • Ok, so in this example, I am only editing the subscribe_popup.phtml file, so why is the frontend not updating after clearing cache? It's a theme file, not Magento core file. Tried clearing cache via Magento admin, and deleting cache folder in /var folder, but no change in frontend like I say

                      – MagentoMac
                      Nov 9 '17 at 19:32











                    • This isn't the answer to this question and the question really still needs an answer. Have searched similar questions in this network, but nobody asking the exact same question and no answer out there as far as I can see. I think you need to redeploy the static content, but would like an answer either way to confirm from somebody who is 100% sure and can maybe even explain why?

                      – MagentoMac
                      Nov 10 '17 at 16:43














                    0












                    0








                    0







                    You don't need to run the setup:static-content:deploy commamd every time to show the changes of phtml file. If your theme is perfectly created and the cache is refreshed successfully, then your changes will be displayed in the frontend.






                    share|improve this answer













                    You don't need to run the setup:static-content:deploy commamd every time to show the changes of phtml file. If your theme is perfectly created and the cache is refreshed successfully, then your changes will be displayed in the frontend.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Nov 9 '17 at 19:14







                    user60655




















                    • Ok, but they're not..... the file is being edited in the location detailed above. Cache is being cleared in normal fashion. So why are changes not appearing in frontend? I can only get the changes to occur is static content is redeployed as I say.

                      – MagentoMac
                      Nov 9 '17 at 19:17











                    • Updated question to detail we are using Magento version 2, not Magento1!! Fairly obvious thing I forgot to mention.... long day.... should also have mentioned we have JS and CSS minified. Is that causing the issue? My understanding for Magento2 is that the files need to be edited in the /pub folder. If in app/design folder, then they need to be redeployed to be updated in frontend?

                      – MagentoMac
                      Nov 9 '17 at 19:21











                    • Pub folder only consists css, images, js and fonts files. You need to run deploy command if only you add or edit css,js,images or fonts in app/design folder. If you are editing only phtml file then it doesn't need to run deploy command

                      – user60655
                      Nov 9 '17 at 19:24











                    • Ok, so in this example, I am only editing the subscribe_popup.phtml file, so why is the frontend not updating after clearing cache? It's a theme file, not Magento core file. Tried clearing cache via Magento admin, and deleting cache folder in /var folder, but no change in frontend like I say

                      – MagentoMac
                      Nov 9 '17 at 19:32











                    • This isn't the answer to this question and the question really still needs an answer. Have searched similar questions in this network, but nobody asking the exact same question and no answer out there as far as I can see. I think you need to redeploy the static content, but would like an answer either way to confirm from somebody who is 100% sure and can maybe even explain why?

                      – MagentoMac
                      Nov 10 '17 at 16:43



















                    • Ok, but they're not..... the file is being edited in the location detailed above. Cache is being cleared in normal fashion. So why are changes not appearing in frontend? I can only get the changes to occur is static content is redeployed as I say.

                      – MagentoMac
                      Nov 9 '17 at 19:17











                    • Updated question to detail we are using Magento version 2, not Magento1!! Fairly obvious thing I forgot to mention.... long day.... should also have mentioned we have JS and CSS minified. Is that causing the issue? My understanding for Magento2 is that the files need to be edited in the /pub folder. If in app/design folder, then they need to be redeployed to be updated in frontend?

                      – MagentoMac
                      Nov 9 '17 at 19:21











                    • Pub folder only consists css, images, js and fonts files. You need to run deploy command if only you add or edit css,js,images or fonts in app/design folder. If you are editing only phtml file then it doesn't need to run deploy command

                      – user60655
                      Nov 9 '17 at 19:24











                    • Ok, so in this example, I am only editing the subscribe_popup.phtml file, so why is the frontend not updating after clearing cache? It's a theme file, not Magento core file. Tried clearing cache via Magento admin, and deleting cache folder in /var folder, but no change in frontend like I say

                      – MagentoMac
                      Nov 9 '17 at 19:32











                    • This isn't the answer to this question and the question really still needs an answer. Have searched similar questions in this network, but nobody asking the exact same question and no answer out there as far as I can see. I think you need to redeploy the static content, but would like an answer either way to confirm from somebody who is 100% sure and can maybe even explain why?

                      – MagentoMac
                      Nov 10 '17 at 16:43

















                    Ok, but they're not..... the file is being edited in the location detailed above. Cache is being cleared in normal fashion. So why are changes not appearing in frontend? I can only get the changes to occur is static content is redeployed as I say.

                    – MagentoMac
                    Nov 9 '17 at 19:17





                    Ok, but they're not..... the file is being edited in the location detailed above. Cache is being cleared in normal fashion. So why are changes not appearing in frontend? I can only get the changes to occur is static content is redeployed as I say.

                    – MagentoMac
                    Nov 9 '17 at 19:17













                    Updated question to detail we are using Magento version 2, not Magento1!! Fairly obvious thing I forgot to mention.... long day.... should also have mentioned we have JS and CSS minified. Is that causing the issue? My understanding for Magento2 is that the files need to be edited in the /pub folder. If in app/design folder, then they need to be redeployed to be updated in frontend?

                    – MagentoMac
                    Nov 9 '17 at 19:21





                    Updated question to detail we are using Magento version 2, not Magento1!! Fairly obvious thing I forgot to mention.... long day.... should also have mentioned we have JS and CSS minified. Is that causing the issue? My understanding for Magento2 is that the files need to be edited in the /pub folder. If in app/design folder, then they need to be redeployed to be updated in frontend?

                    – MagentoMac
                    Nov 9 '17 at 19:21













                    Pub folder only consists css, images, js and fonts files. You need to run deploy command if only you add or edit css,js,images or fonts in app/design folder. If you are editing only phtml file then it doesn't need to run deploy command

                    – user60655
                    Nov 9 '17 at 19:24





                    Pub folder only consists css, images, js and fonts files. You need to run deploy command if only you add or edit css,js,images or fonts in app/design folder. If you are editing only phtml file then it doesn't need to run deploy command

                    – user60655
                    Nov 9 '17 at 19:24













                    Ok, so in this example, I am only editing the subscribe_popup.phtml file, so why is the frontend not updating after clearing cache? It's a theme file, not Magento core file. Tried clearing cache via Magento admin, and deleting cache folder in /var folder, but no change in frontend like I say

                    – MagentoMac
                    Nov 9 '17 at 19:32





                    Ok, so in this example, I am only editing the subscribe_popup.phtml file, so why is the frontend not updating after clearing cache? It's a theme file, not Magento core file. Tried clearing cache via Magento admin, and deleting cache folder in /var folder, but no change in frontend like I say

                    – MagentoMac
                    Nov 9 '17 at 19:32













                    This isn't the answer to this question and the question really still needs an answer. Have searched similar questions in this network, but nobody asking the exact same question and no answer out there as far as I can see. I think you need to redeploy the static content, but would like an answer either way to confirm from somebody who is 100% sure and can maybe even explain why?

                    – MagentoMac
                    Nov 10 '17 at 16:43





                    This isn't the answer to this question and the question really still needs an answer. Have searched similar questions in this network, but nobody asking the exact same question and no answer out there as far as I can see. I think you need to redeploy the static content, but would like an answer either way to confirm from somebody who is 100% sure and can maybe even explain why?

                    – MagentoMac
                    Nov 10 '17 at 16:43


















                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Magento Stack Exchange!


                    • 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%2fmagento.stackexchange.com%2fquestions%2f200816%2fhow-to-edit-file-in-app-design-frontend-without-having-to-redeploy-static-conten%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

                    William S. Burroughs

                    Eda skans

                    1924