blog

Include Proper HTML/CSS in Any Wordpress Page

Yesterday, we were working on a typical client site that required us to do the usual HTML/CSS template to wordpress template work… and when it came time to dump in the HTML contents of the site, it came apparent (once again) of how frustrating working with wordpress pages can be.

So, after some intense frustration, I came up with a wordpress plugin that will automatically create html files with the same name as any page created within wordpress (it will also create them within their respective sub-directories.)

Example:

http://www.mydomain.com/parentpage/parentchild/

—will create the directory /pages/parentpage/parentchild.html

Now we can edit parentchild.html and it’s contents will be included within the wordpress page while not compromising the HTML/CSS contained within! Wowee-wow-wow!

Keep in mind that this plugin will know to create the path for the html page when you load the wordpress page in your browser.

Instructions:

Create the a directory called

/pages/

within the root location of your wordpress install and CHMOD it with permission 777.

Download

atilus-page-include.zip and extract it inside your /wp-contents/plugins/

directory.

Then, in your page.php template file, place this php code where you want the html to be included:

if(class_exists(Atilus_PageInclude)) { Atilus_PageInclude::do_include(); }


Please email me at (JavaScript must be enabled to view this email address) with any support questions.

What Others Are Saying (0)

Be the first to comment on this blog! You know you want to.

Tell Us What You Think

(required)

(required - will not be posted)

Remember my personal information

Notify me of follow-up comments?