• I have converted an html file to a wordpress, just by changing it to a .php filr, and adding the following to the top:

    <?php /* Template Name: Download-de-filmes Home
    */ ?>

    I want some very basic wordpress functionality in the file, that won’t alter how it looks. That being, some header information (title, description, meta tags). Plus a hook for the footer, primarily for google analytics.

    Can someone point me in the right direction?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • I have converted an html file to a wordpress, just by changing it to a .php filr

    That will not work correctly. See Creating_Your_Own_Page_Templates.

    Thread Starter ronniead

    (@ronniead)

    It actually did work for me. I created the php file, inserted it into an existing theme, and when i created a “Page”, I just selected that file as the template, and voila, worked fine.

    I don’t want to convert it to be a propper WordPress file, too much fiddling around…it’s only one page.

    I just want to put in the correct hooks as mentioned above. Inserting

    <?php get_header(); ?>

    makes the page look funny. I just want the headers / meta tags and analytics code to be managed within WordPress.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘barebones header and footer’ is closed to new replies.