Header and footer in an external fileRender header and footer in custom controllerRemoving Header and Footer from CMS pageusing Header/Footer files into outside external file in magentoHome page is not loading content for any configurationMagento 2 theme header - Welcome messageCustom Admin Layouts not working after database moveMagento 2.1.6 - How to setup email templates header and footerMagento 2: Include header and footer in external phpMagento 2 adding navigation bar in checkoutpageHeader and footer in Magento 2.2.0

El Dorado Word Puzzle II: Videogame Edition

Possible Eco thriller, man invents a device to remove rain from glass

Overlapping circles covering polygon

How to I force windows to use a specific version of SQLCMD?

Why didn’t Eve recognize the little cockroach as a living organism?

Sound waves in different octaves

Proving an identity involving cross products and coplanar vectors

Would this string work as string?

How do I Interface a PS/2 Keyboard without Modern Techniques?

Difference between shutdown options

Should I assume I have passed probation?

Pre-Employment Background Check With Consent For Future Checks

Are Captain Marvel's powers affected by Thanos breaking the Tesseract and claiming the stone?

Why does the Persian emissary display a string of crowned skulls?

Quoting Keynes in a lecture

"Oh no!" in Latin

What's the name of the logical fallacy where a debater extends a statement far beyond the original statement to make it true?

How to preserve electronics (computers, iPads and phones) for hundreds of years

Has the laser at Magurele, Romania reached a tenth of the Sun's power?

Can I cause damage to electrical appliances by unplugging them when they are turned on?

Grepping string, but include all non-blank lines following each grep match

Why can't the Brexit deadlock in the UK parliament be solved with a plurality vote?

Is there anyway, I can have two passwords for my wi-fi

Why is the Sun approximated as a black body at ~ 5800 K?



Header and footer in an external file


Render header and footer in custom controllerRemoving Header and Footer from CMS pageusing Header/Footer files into outside external file in magentoHome page is not loading content for any configurationMagento 2 theme header - Welcome messageCustom Admin Layouts not working after database moveMagento 2.1.6 - How to setup email templates header and footerMagento 2: Include header and footer in external phpMagento 2 adding navigation bar in checkoutpageHeader and footer in Magento 2.2.0













4















I'm using an index.php file under /pub/custom folder, which is used to create custom designs.

This file is completely written in html and javascript.



Is there any way to include current header and footer to this file? There are so many answers for Magento 1, but I couldn't find anything for Magento 2.

I'm using version 2.1.15. and Porto theme.



Any help would be appreciated! Thanks.










share|improve this question




























    4















    I'm using an index.php file under /pub/custom folder, which is used to create custom designs.

    This file is completely written in html and javascript.



    Is there any way to include current header and footer to this file? There are so many answers for Magento 1, but I couldn't find anything for Magento 2.

    I'm using version 2.1.15. and Porto theme.



    Any help would be appreciated! Thanks.










    share|improve this question


























      4












      4








      4


      1






      I'm using an index.php file under /pub/custom folder, which is used to create custom designs.

      This file is completely written in html and javascript.



      Is there any way to include current header and footer to this file? There are so many answers for Magento 1, but I couldn't find anything for Magento 2.

      I'm using version 2.1.15. and Porto theme.



      Any help would be appreciated! Thanks.










      share|improve this question
















      I'm using an index.php file under /pub/custom folder, which is used to create custom designs.

      This file is completely written in html and javascript.



      Is there any way to include current header and footer to this file? There are so many answers for Magento 1, but I couldn't find anything for Magento 2.

      I'm using version 2.1.15. and Porto theme.



      Any help would be appreciated! Thanks.







      magento-2.1 layout frontend header footer






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 21 hours ago







      ASR

















      asked 23 hours ago









      ASRASR

      1265




      1265




















          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%2f266588%2fheader-and-footer-in-an-external-file%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%2f266588%2fheader-and-footer-in-an-external-file%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

          419 nièngy_Soadمي 19bal1.5o_g

          Queiggey Chernihivv 9NnOo i Zw X QqKk LpB