How to edit file in app/design/frontend without having to redeploy static content in Magento2?
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
add a comment |
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
add a comment |
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
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
magento2 static-content static-content-deploy
edited Nov 9 '17 at 19:18
MagentoMac
asked Nov 9 '17 at 18:57
MagentoMacMagentoMac
61431333
61431333
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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.
add a comment |
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.
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered Jan 15 at 14:00
harriharri
2,8791448
2,8791448
add a comment |
add a comment |
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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