by tih
6 replies
  • WEB DESIGN
  • |
Hello all,

I would like to extract my website (website built on wordpress CMS) header & footer. Anybody knows how to extract header & footer from wordpress template to HTML format?

Thanks in advance!
#html #wordpres #wordpress to html
  • Profile picture of the author HenrikPoulsen
    Several ways of doing this.
    You can just open the page in a browser and view the source code.

    another way is to find your theme files (wordpress-->wp-content-->themes-->your theme

    in there you will find header.php and footer.php

    the stylesheet will probably be found here also (depends on the theme if the complete stylesheet is here or not)
    {{ DiscussionBoard.errors[2838150].message }}
    • Profile picture of the author tih
      @ HenrikPoulsen,

      Thank you for your reply. I tried saving page as html but it didn't really helped me.

      2nd option is good but how to convert php file to html format? any idea?
      Signature
      {{ DiscussionBoard.errors[2838192].message }}
      • Profile picture of the author HenrikPoulsen
        Originally Posted by tih View Post

        @ HenrikPoulsen,

        Thank you for your reply. I tried saving page as html but it didn't really helped me.

        2nd option is good but how to convert php file to html format? any idea?
        while in your browser window all you need is to go to view-->view source. this will open up a lot of source code for you. now copy the whole thing and create a .txt document (paste in all the text and remove what you don't need, in this case everything between the header and footer)

        Save the .txt document and rename it .html
        {{ DiscussionBoard.errors[2838247].message }}
  • Profile picture of the author swtsubmit
    You can use firebug, addon for firefox to select the element you want to copy, and just click copy html and thats it.
    {{ DiscussionBoard.errors[2838217].message }}
  • Profile picture of the author tih
    @ Victoria B. Thanks. I will stick to this if there is no better way
    @Swtsubmit. I thanks. I will try this option.
    Signature
    {{ DiscussionBoard.errors[2838255].message }}
  • Profile picture of the author tih
    @ HenrikPoulsen,

    Thanks once again for the detailed explanation. So far I was opening my website & saving file as html format. Viewing source file gives better pictures.

    I have solved my problem.
    Signature
    {{ DiscussionBoard.errors[2838464].message }}

Trending Topics