Prep – you need a Clean Install of WordPress a text editor/IDE (I’m using Eclipse), jQuery and jQueryUI
Add screenshot.png – optional, picture for the child theme in the dashboard. It must be named “screenshot.png”.
Create file 1 of 4, style.css, which is the only required file for a child theme. Please see the WordPress Codex for more information.
Create file 2 of 4, functions.php to enqueue the 3 scripts we need when WordPress enqueues scripts (action hook). There are potential conflicts with plugins using this method – please see note at end of post.
Create file 3 of 4, demo-tabs-page.php, to have the tabs HTML in a custom child theme page template.
Create file 4 of 4, demoTabsScript.js to activate the jQuery UI Tabs widget.
Activate the child theme in the dashboard
Create a new page using the custom page template.
View the new page on the site, with the jQuery UI Tabs.
This tutorial walks through a 25 step WordPress 3.5 install using cPanel. How to Video at end of Post.
We’re going to install the WordPress files in a sub-directory of our Document Root that is named something other than WordPress. This makes it a touch more difficult to exploit WordPress weaknesses for Bots from the dark side that are scanning our sites.
To have our site operate gracefully, we’ll need to take a couple of extra steps (simple and effective, see steps 6, 7, 8, 9 and 24 below). These steps allow our site to be accessed with http://mydomain.comwhile our WordPress files live happily ever after in their sub-directory. For this demo our site address is http://waimanusolutions.com while our WordPress files are located at http://waimanusolutions.com/mywpdir/.
Below please find the Code Download, Video Description, List of Ingredients, The 3 php files with syntax highlighting and table structure screen prints of the 2 tables and the embedded video.
1/6/2013 UPDATE – Please note that you must use the bindParam or bindValue options to protect yourself from injection. They will be used on UPDATE and INSERT operations – separate post and video coming soon.