1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Anyone know how to do this in Wordpress?

Discussion in 'Blogging' started by Grandslam, Nov 27, 2011.

  1. Grandslam

    Grandslam Senior Member

    Joined:
    Apr 23, 2009
    Messages:
    966
    Likes Received:
    313
    I'm trying to figure out a way to make a page on one of my wordpress blogs appear as a simple HTML page that I had coded for me. I don't want it to look like a wordpress page (i.e. theme, sidebar, wp header, etc). I want it to look exactly like the static HTML page.

    How can I make the page on my WP blog look exactly like the HTML page? Is there a theme or plugin that makes this possible?
     
  2. GORILLA

    GORILLA Newbie

    Joined:
    Apr 8, 2011
    Messages:
    41
    Likes Received:
    38
    Google "Page Templates" and that should give you a nudge in the right direction.

    Basically, you can just use that HTML as the page template and thats it. I'd be happy to help if you can't figure it out.


    EDIT: Heres the link you need http://codex.wordpress.org/Pages#Page_Templates
     
    Last edited: Nov 27, 2011
  3. dra$tic

    dra$tic BANNED BANNED

    Joined:
    Dec 20, 2010
    Messages:
    393
    Likes Received:
    108
    Maybe I am not understanding what you're trying to do exactly but I don't think you need a plugin for this.. Just upload the HTML page to the subfolder with the rest of your WP pages and hyperlink it in the menu or where ever you want the visitor to see the link..
     
  4. Grandslam

    Grandslam Senior Member

    Joined:
    Apr 23, 2009
    Messages:
    966
    Likes Received:
    313
    The reason I want to do it in the manner I mentioned is that I have a specific plugin I want to use for analytics on the html page, but the plugin only works for wordpress, so I can't install it on the html page itself.
     
  5. azxster

    azxster Newbie

    Joined:
    Jul 8, 2011
    Messages:
    21
    Likes Received:
    1
    That is how I would do it.
     
  6. dra$tic

    dra$tic BANNED BANNED

    Joined:
    Dec 20, 2010
    Messages:
    393
    Likes Received:
    108
    All you have to do is place the Analytics code just above the </body> tag. G will track that page as well and it should even show through your Analytics plugin on WP. Hope that helps.
     
  7. waikikicane

    waikikicane Registered Member

    Joined:
    Jul 5, 2011
    Messages:
    81
    Likes Received:
    42
    I am in the same boat. I would like to use a couple of WordPress plugins on a "normal" html page as well.
     
  8. gsy159

    gsy159 Power Member

    Joined:
    Apr 29, 2011
    Messages:
    657
    Likes Received:
    158
    go to your permalinks and add ".html" at the end
     
  9. upl8t

    upl8t Regular Member

    Joined:
    Apr 9, 2008
    Messages:
    475
    Likes Received:
    84
    Location:
    New Scotland
    You can't add a WP plugin into a normal html page.

    What you need to do is learn how to create a separate customized page template within the WP theme that you're using. When you create that page template you strip out all the extras... header, footer, sidebars etc that you don't want, you still need the code to pull in the page content, and then post the html into a new WP page using the new page template you built. That should work fine.
     
  10. IMMWilde

    IMMWilde Registered Member

    Joined:
    Nov 14, 2011
    Messages:
    54
    Likes Received:
    8
    Location:
    Latvia
    It can be easily coded if you know php. You can use custom templates for your pages.
     
  11. IMMWilde

    IMMWilde Registered Member

    Joined:
    Nov 14, 2011
    Messages:
    54
    Likes Received:
    8
    Location:
    Latvia
    Ok, sorry for doublepost. You don't need to know php (don't know much about wp).
    So, what you have to do.
    1. Create php file, for example blankpage.php
    Code:
    <?php
    /*
    Template Name: BlankPage (or whatever)
    */
    ?>
    Your HTML code goes here
    
    2. Upload it to your wordpress theme folder
    3. Create new page, only enter name for it and in Page Attributes choose your 'theme' you uploaded.

    That's it. Plugins might be called in header that we removed, but I'm pretty shure you can call them manually.
     
    Last edited: Nov 27, 2011
  12. flexnds

    flexnds Power Member

    Joined:
    Jan 4, 2010
    Messages:
    643
    Likes Received:
    680
    Occupation:
    Internet Marketing, Web development, Internet Repu
    Location:
    AZ
    I believe you can use IMMWilde's suggestion and just throw your wp hooks into your custom file. I am assuming your custom plugin hooks into the wp_head or wp_footer.
     
  13. alessander

    alessander Newbie

    Joined:
    Dec 6, 2010
    Messages:
    5
    Likes Received:
    0
    GrandSlam

    here it's a tutorial:

    seomofo

    Maybe help you

    I don't have yet permission to post link in forum ....anyone code it, please!