Compile email-inline.less not workingmagento2 email header.html is not being included in transaction emailMagento 2 custom email template not including headerMagento 2: Override/extend the email.css that is being used in the transactional email headerMagento 2 Minification of css is breaking email cssChange order of CSS and JS in the <head> section of the pageMagento2: Reset password custom email templateUse custom email template in another email templateMagento 2 new home page template not workingCustom CSS not loadingmagento 2 custom email template image/logo not displayed

How can "mimic phobia" be cured or prevented?

A social experiment. What is the worst that can happen?

On a tidally locked planet, would time be quantized?

Why do compilers behave differently when static_cast(ing) a function to void*?

It grows, but water kills it

Why did the HMS Bounty go back to a time when whales are already rare?

What if a revenant (monster) gains fire resistance?

Is the U.S. Code copyrighted by the Government?

Drawing ramified coverings with tikz

Count the occurrence of each unique word in the file

Why does the Sun have different day lengths, but not the gas giants?

What was this official D&D 3.5e Lovecraft-flavored rulebook?

Does an advisor owe his/her student anything? Will an advisor keep a PhD student only out of pity?

Why is it that I can sometimes guess the next note?

What was the exact wording from Ivanhoe of this advice on how to free yourself from slavery?

Has any country ever had 2 former presidents in jail simultaneously?

Creepy dinosaur pc game identification

Intuition of generalized eigenvector.

What is this called? Old film camera viewer?

Is there a name for this algorithm to calculate the concentration of a mixture of two solutions containing the same solute?

Non-trope happy ending?

WiFi Thermostat, No C Terminal on Furnace

Why electric field inside a cavity of a non-conducting sphere not zero?

Why did the Mercure fail?



Compile email-inline.less not working


magento2 email header.html is not being included in transaction emailMagento 2 custom email template not including headerMagento 2: Override/extend the email.css that is being used in the transactional email headerMagento 2 Minification of css is breaking email cssChange order of CSS and JS in the <head> section of the pageMagento2: Reset password custom email templateUse custom email template in another email templateMagento 2 new home page template not workingCustom CSS not loadingmagento 2 custom email template image/logo not displayed













0















I created a header.html located in the




app/design/frontend/VENDOR/MODULE/Magento_Email/email/header.html




not within this header.html I added a div tag that has a class of custom-border.



<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="initial-scale=1.0, width=device-width" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<style type="text/css">
raw
css file="css/email.css"
</style>
</head>
<body>
inlinecss file="css/email-inline.css"
<h1 class="custom-border">Custom Border div here</h1> <!-- newly added -->
<!-- Begin wrapper table -->


Now I also have an email-inline.less located in




app/design/frontend/VENDOR/MODULE/Magento_Email/web/css/email-inline.css




Within this file I have defined the code as shown below



.custom-border 
border: 10px solid green;
color: red;



Now I went to the Magento Admin under Marketing->Communication->Email Templates and I added a new header by selecting my Custom Header as my Load Default Template. After I load the template it indeed show the header.html that I created. Now when I save this new header template I created in the admin then clicking the preview button the style that has a selector of .custom-border is not taking effect.



What am I missing? I already cleared cache, deleted generated and pub/static folder. Deploy static-content. But still the email-inline.less changes does not take effect.



Any idea guys?










share|improve this question




























    0















    I created a header.html located in the




    app/design/frontend/VENDOR/MODULE/Magento_Email/email/header.html




    not within this header.html I added a div tag that has a class of custom-border.



    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="initial-scale=1.0, width=device-width" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <style type="text/css">
    raw
    css file="css/email.css"
    </style>
    </head>
    <body>
    inlinecss file="css/email-inline.css"
    <h1 class="custom-border">Custom Border div here</h1> <!-- newly added -->
    <!-- Begin wrapper table -->


    Now I also have an email-inline.less located in




    app/design/frontend/VENDOR/MODULE/Magento_Email/web/css/email-inline.css




    Within this file I have defined the code as shown below



    .custom-border 
    border: 10px solid green;
    color: red;



    Now I went to the Magento Admin under Marketing->Communication->Email Templates and I added a new header by selecting my Custom Header as my Load Default Template. After I load the template it indeed show the header.html that I created. Now when I save this new header template I created in the admin then clicking the preview button the style that has a selector of .custom-border is not taking effect.



    What am I missing? I already cleared cache, deleted generated and pub/static folder. Deploy static-content. But still the email-inline.less changes does not take effect.



    Any idea guys?










    share|improve this question


























      0












      0








      0








      I created a header.html located in the




      app/design/frontend/VENDOR/MODULE/Magento_Email/email/header.html




      not within this header.html I added a div tag that has a class of custom-border.



      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      <meta name="viewport" content="initial-scale=1.0, width=device-width" />
      <meta http-equiv="X-UA-Compatible" content="IE=edge" />
      <style type="text/css">
      raw
      css file="css/email.css"
      </style>
      </head>
      <body>
      inlinecss file="css/email-inline.css"
      <h1 class="custom-border">Custom Border div here</h1> <!-- newly added -->
      <!-- Begin wrapper table -->


      Now I also have an email-inline.less located in




      app/design/frontend/VENDOR/MODULE/Magento_Email/web/css/email-inline.css




      Within this file I have defined the code as shown below



      .custom-border 
      border: 10px solid green;
      color: red;



      Now I went to the Magento Admin under Marketing->Communication->Email Templates and I added a new header by selecting my Custom Header as my Load Default Template. After I load the template it indeed show the header.html that I created. Now when I save this new header template I created in the admin then clicking the preview button the style that has a selector of .custom-border is not taking effect.



      What am I missing? I already cleared cache, deleted generated and pub/static folder. Deploy static-content. But still the email-inline.less changes does not take effect.



      Any idea guys?










      share|improve this question
















      I created a header.html located in the




      app/design/frontend/VENDOR/MODULE/Magento_Email/email/header.html




      not within this header.html I added a div tag that has a class of custom-border.



      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      <meta name="viewport" content="initial-scale=1.0, width=device-width" />
      <meta http-equiv="X-UA-Compatible" content="IE=edge" />
      <style type="text/css">
      raw
      css file="css/email.css"
      </style>
      </head>
      <body>
      inlinecss file="css/email-inline.css"
      <h1 class="custom-border">Custom Border div here</h1> <!-- newly added -->
      <!-- Begin wrapper table -->


      Now I also have an email-inline.less located in




      app/design/frontend/VENDOR/MODULE/Magento_Email/web/css/email-inline.css




      Within this file I have defined the code as shown below



      .custom-border 
      border: 10px solid green;
      color: red;



      Now I went to the Magento Admin under Marketing->Communication->Email Templates and I added a new header by selecting my Custom Header as my Load Default Template. After I load the template it indeed show the header.html that I created. Now when I save this new header template I created in the admin then clicking the preview button the style that has a selector of .custom-border is not taking effect.



      What am I missing? I already cleared cache, deleted generated and pub/static folder. Deploy static-content. But still the email-inline.less changes does not take effect.



      Any idea guys?







      magento2 magento2.2 magento2.3






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited yesterday









      Ghulam.M

      1549




      1549










      asked yesterday









      MadzQuestioningMadzQuestioning

      1928




      1928




















          0






          active

          oldest

          votes











          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%2f267016%2fcompile-email-inline-less-not-working%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          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%2f267016%2fcompile-email-inline-less-not-working%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

          Sum ergo cogito? 1 nng

          三茅街道4182Guuntc Dn precexpngmageondP