Anyone know how to do this in Wordpress?

Grandslam

BANNED
Joined
Apr 23, 2009
Messages
967
Reaction score
319
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?
 
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:
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..
 
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..

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.
 
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..

That is how I would do it.
 
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.

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.
 
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.

I am in the same boat. I would like to use a couple of WordPress plugins on a "normal" html page as well.
 
go to your permalinks and add ".html" at the end
 
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.
 
It can be easily coded if you know php. You can use custom templates for your pages.
 
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:
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.
 
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!


 
Back
Top