How to build a custom Wordpress theme

Description

This guide shows the step by step method of transforming a html page into a Wordpress theme.

Reviews
Shared by: Michael
Stats
views:
65
rating:
not rated
reviews:
0
posted:
11/4/2009
language:
English
pages:
0
82 Technique Dreamweaver and Photoshop CS3 or later Build a custom WordPress theme Convert static HTML templates into a dynamic WordPress theme, no PHP skills required – just follow Nick La’s copyand-paste instructions Creating a WordPress theme is extremely easy, as you don’t need any PHP programming skills. However, in order to create a custom theme you need to be able to code your own HTML and CSS templates. Coding the theme on a local computer can also save a lot of time because you can quickly preview it and can avoid the hassle of uploading the files to the server. We will also follow the structure of the default WordPress theme to create a custom theme from scratch, walking through how to convert a HTML template into a WordPress theme. All you need to do is copy and paste the PHP code from the default theme. After you complete this tutorial, you should understand how a WordPress theme works and be able to create your own. You will find a copy of the HTML template for this tutorial included on the disc. 01 In order for WordPress to run on your local computer, you need a local server. For Mac, download MAMP from http//:mamp.info and install it (for PC, use XAMPP from http://bit.ly/2azZ3M or WAMP from http://bit.ly/19htnc). Run MAMP, go to the phpMyAdmin page, and create a new database that will be used for WordPress. Download the latest WordPress zip from wordpress.org and extract it to a new folder, ‘wp’, under the htdocs folder (under your MAMP folder). Now to update wp-config.php and install WordPress. In the ‘wp’ folder, rename wp-config-sample.php to wp-config.php. Open the wp-config.php with Dreamweaver, and update the database setting according to your server. Then open your browser and go to http://localhost:8888/wp. It should direct you to the installation page. Enter your blog title and email address, and then click ‘Install WordPress’. 02 03 After you’ve installed WordPress, log in and you may change your password and profile details. Before you start designing the theme, get yourself familiar with the blog front-end. Take a look at the default theme and see how the blog is put together. Take note of the elements such as header, post title, search form, navigation, footer etc. 04 Based on the information gathered from the default theme, design a Photoshop mock-up of your blog. Then, slice the mock-up into a static HTML and CSS template. It is easier to create a static HTML file first and get it tested across all browsers, because then all you have to do is replace the HTML code with the PHP snippets; you no longer have to worry about CSS bugs or layout issues during the development process. Nick La Nick is a freelance illustrator and designer from Toronto, Canada. He is a big fan of WordPress, which powers all of his projects: ndesignstudio.com, webdesignerwall. com, bestweb gallery.com and icondock.com On the disc The files accompanying this tutorial can be located on the disc in DiscContents\ Resources\ WordPress Time needed 2-3 hours Skills Install a local server Install WordPress on a local computer Understand how a WordPress theme works Convert HTML templates into WordPress themes So, how does a WordPress theme work? If you go to the default theme folder (wp-content/themes/ default) you should see many PHP files (called Template files) and one style.css file. When you are viewing a page, WordPress actually includes several template files to generate that page. For example, if you open index.php you should see that it uses the get_header, get_sidebar, and get_footer functions to retrieve the files. 05 06 In the ‘wp-content/themes’ folder, create a new folder called ‘glossyblue’. Copy all files from the ‘glossyblue static html templates’ folder on your CD into the new ‘glossyblue’ folder. Then go to the default theme folder (entitled ‘glossyblue HTML’) and copy the comments.php and search.php files to your new ‘glossyblue’ folder. Computer Arts September 2009 www.computerarts.co.uk ART166.tut_dw 82 4/8/09 5:30:13 pm 83 07 Go to the WordPress default theme folder (‘glossyblue HTML’) and open the style.css file. Copy the commented code at the top and paste it into the GlossyBlue’s style.css file. Change the theme name and the author information as you desire. Continuing the theme Go to http://codex.wordpress.org to learn more about WordPress coding. If you are not a PHP programmer, the best way is to copy and paste the code snippets from the existing themes. Now you need to understand where to split the HTML file into several files: header. php, sidebar.php and footer.php. The screenshot shows a simplified version of my index file and how the mark-ups should be split. 08 In the ‘glossyblue’ folder, open the index.html file. Cut from the top to where the ends, paste it in a new PHP file, and save the file as header.php. Go to the default theme folder and open header.php. Copy and replace the tags where it requires PHP code (Template Tag): , <link> stylesheet, <h1>, and <div class=description>. Then replace the nav <li> tags with <?php wp_list_pages();?>. 09 Back to the index.html file. Cut from where the <form id=searchform> starts to the end of <!--/sidebar --> and paste it in a new PHP file. Save it as sidebar.php. Replace the searchform, category and archive list (the highlighted code in the screenshot) with the PHP code accordingly. 10 Back to the index.html file. Cut from the <div id=footer> tag to the end of </html> and paste it in a new PHP file. Save it as footer.php. Replace the ‘recent posts’ and ‘recent comments’ code as shown in the screenshot. I used the WordPress template tag ‘query_post’ to display the five latest posts. The ‘recent comments’ is powered by a plug-in, which is included in the source files. 11 12 In your index.html file you should now only have the <div id=content> wrap. Save the file as index.php. Copy and paste the codes get_header, get_sidebar and get_footer in the same order as your layout structure. Go to the default theme folder and open the index.php file. Copy the loop from the default index.php and paste it in between the <div id=content> wrap (the orange highlighted code). Then replace the static text with the WordPress template tags for post date, title, category, comments, next and previous link (the green highlighted code). 13 Now it’s time to do the single.php template. If you want, you can go through the same process – just cut and paste from the default theme. I find it easier, however, to use the index.php that’s just been created and save it as single.php. Open the default theme single.php file, and copy and paste the wp_link_pages, comments_template, previous_post_link and next_post_link tag into the GlossyBlue’s single.php accordingly. 14 Technically speaking, your basic WordPress theme is ready. Log in to the admin panel, go to the Appearance tab and activate the theme. If you want, you may follow the same process and create the other template files such as the page.php and archives.php from the default theme. When you are done, remove all the static HTML files and the theme is ready to use just like any other WordPress template. 15 www.computerarts.co.uk Computer Arts September 2009 ART166.tut_dw 83 4/8/09 5:30:14 pm </div><br /> <!-- google_ad_section_end --> <!--Start SearchLight--> <script type='text/javascript'> aster_cloud_id = '2422251'; aster_cloud_format = '728x90'; </script> <script type='text/javascript'> document.write(unescape("%3Cscript src='http://web.asterpix.com/media/js/searchlight.js' type='text/javascript'%3E%3C/script%3E")); </script> <!--End SearchLight--> </div> </div> </div> </div> <script type="text/javascript"> getEl('viewer-area').style.width = getEl('doc-info').clientWidth + 'px'; </script> <div class="rCol"> <!--Start SearchLight--> <script type='text/javascript'> aster_cloud_id = '2426791'; aster_cloud_format = '250x250'; </script> <script type='text/javascript'> document.write(unescape("%3Cscript src='http://web.asterpix.com/media/js/searchlight.js' type='text/javascript'%3E%3C/script%3E")); </script> <!--End SearchLight--> <div class="adword" id="ad-spot3"> </div> <!-- google_ad_section_start --> <div class="docs-box-header">Related docs</div><div class="docs-box"> <div class="doc"> <a href="/docs/275315/How-To-Design-A-Wordpress-Theme-From-Scratch" class="thumb" title="275315"></a> <div class="titleStats"><a class="title" href="/docs/275315/How-To-Design-A-Wordpress-Theme-From-Scratch">How To Design A Wordpress Theme From Scratch</a> <div class="stats"> Views: 1284  |  Downloads: 147</div></div> <div class="clr"></div> </div> <div class="doc"> <a href="/docs/16883929/Joomla-Template-and-Wordpress-Theme" class="thumb" title="16883929"></a> <div class="titleStats"><a class="title" href="/docs/16883929/Joomla-Template-and-Wordpress-Theme">Joomla Template and Wordpress Theme</a> <div class="stats"> Views: 25  |  Downloads: 1</div></div> <div class="clr"></div> </div> <div class="doc"> <a href="/docs/16609349/WordPress-Plugins" class="thumb" title="16609349"></a> <div class="titleStats"><a class="title" href="/docs/16609349/WordPress-Plugins">WordPress Plugins</a> <div class="stats"> Views: 52  |  Downloads: 0</div></div> <div class="clr"></div> </div> <div class="doc"> <a href="/docs/11764637/Blogging-with-Wordpress" class="thumb" title="11764637"></a> <div class="titleStats"><a class="title" href="/docs/11764637/Blogging-with-Wordpress">Blogging with Wordpress</a> <div class="stats"> Views: 12  |  Downloads: 0</div></div> <div class="clr"></div> </div> <div class="doc"> <a href="/docs/894399/Wordpress-Digital-Collections-and-Web-Services" class="thumb" title="894399"></a> <div class="titleStats"><a class="title" href="/docs/894399/Wordpress-Digital-Collections-and-Web-Services">Wordpress Digital Collections and Web Services</a> <div class="stats"> Views: 171  |  Downloads: 13</div></div> <div class="clr"></div> </div> <div class="doc"> <a href="/docs/13834683/How_to_Install_Your_WordPress_Theme" class="thumb" title="13834683"></a> <div class="titleStats"><a class="title" href="/docs/13834683/How_to_Install_Your_WordPress_Theme">How_to_Install_Your_WordPress_Theme</a> <div class="stats"> Views: 0  |  Downloads: 0</div></div> <div class="clr"></div> </div> <div class="doc"> <a href="/docs/4441228/Wordpress-Custom-Page-Template-How-To" class="thumb" title="4441228"></a> <div class="titleStats"><a class="title" href="/docs/4441228/Wordpress-Custom-Page-Template-How-To">Wordpress Custom Page Template How To</a> <div class="stats"> Views: 706  |  Downloads: 11</div></div> <div class="clr"></div> </div> <div class="doc"> <a href="/docs/20063397/wordpress-seo" class="thumb" title="20063397"></a> <div class="titleStats"><a class="title" href="/docs/20063397/wordpress-seo">wordpress seo</a> <div class="stats"> Views: 45  |  Downloads: 0</div></div> <div class="clr"></div> </div> <div class="doc"> <a href="/docs/18394697/Theme" class="thumb" title="18394697"></a> <div class="titleStats"><a class="title" href="/docs/18394697/Theme">Theme</a> <div class="stats"> Views: 14  |  Downloads: 0</div></div> <div class="clr"></div> </div> <div class="doc"> <a href="/docs/18661216/THEME" class="thumb" title="18661216"></a> <div class="titleStats"><a class="title" href="/docs/18661216/THEME">THEME</a> <div class="stats"> Views: 10  |  Downloads: 0</div></div> <div class="clr"></div> </div> <div class="doc"> <a href="/docs/17908448/About-this-series-How-to-Write-a-Wordpress-Plugin-written-by-" class="thumb" title="17908448"></a> <div class="titleStats"><a class="title" href="/docs/17908448/About-this-series-How-to-Write-a-Wordpress-Plugin-written-by-">About-this-series-How-to-Write-a-Wordpress-Plugin,-written-by-</a> <div class="stats"> Views: 2  |  Downloads: 0</div></div> <div class="clr"></div> </div> <div class="doc"> <a href="/docs/1107203/Wordpress-27-to-be-Released-November-2008-Highlights-of-Wordpress-27" class="thumb" title="1107203"></a> <div class="titleStats"><a class="title" href="/docs/1107203/Wordpress-27-to-be-Released-November-2008-Highlights-of-Wordpress-27">Wordpress 2.7 to be Released November 2008 Highlights of Wordpress 2.7</a> <div class="stats"> Views: 103  |  Downloads: 4</div></div> <div class="clr"></div> </div> <div class="doc"> <a href="/docs/5147966/Moving-Wordpress-Guide-How-to-Move-Your-Wordpress-Blog" class="thumb" title="5147966"></a> <div class="titleStats"><a class="title" href="/docs/5147966/Moving-Wordpress-Guide-How-to-Move-Your-Wordpress-Blog">Moving Wordpress Guide How to Move Your Wordpress Blog</a> <div class="stats"> Views: 529  |  Downloads: 13</div></div> <div class="clr"></div> </div> <div class="doc"> <a href="/docs/2139163/WordPress-Tutorial" class="thumb" title="2139163"></a> <div class="titleStats"><a class="title" href="/docs/2139163/WordPress-Tutorial">WordPress Tutorial</a> <div class="stats"> Views: 99  |  Downloads: 23</div></div> <div class="clr"></div> </div> </div> <!-- google_ad_section_end --> <style type="text/css"> .window-premium-docs {background-color:#f2f2f2; border:solid 1px #b8b8b8; border-top:none; padding:3px 10px; } .window-premium-docs a {color:#04405e; font-size:13px; font-weight:bold;float:left; width:180px;clear:left;margin-bottom:10px; padding-right:10px;} .window-premium-docs b {color:#000; font-size:12px; font-weight:normal; display:block; float:left; clear:right;} </style> <div><img src="/i/header-premium-docs-250.png" alt="premium docs" /></div> <div class="window-premium-docs"> <a href="/docs/8639053/" onclick="adClick('Paid-Feat', 'California Member-Managed LLC Operating Agreement', '14850101')">California Member-Managed LLC Operating Agreement</a><b>$19.95</b><br /> <a href="/docs/8553950/" onclick="adClick('Paid-Feat', 'Acknowledgment of Independent Contractor', '14850101')">Acknowledgment of Independent Contractor</a><b>$8.95</b><br /> <a href="/docs/8553954/" onclick="adClick('Paid-Feat', 'Artist-Agent Engagement Agreement', '14850101')">Artist-Agent Engagement Agreement</a><b>$8.95</b><br /> <a href="/docs/10391193/" onclick="adClick('Paid-Feat', 'Website Design Non-Disclosure', '14850101')">Website Design Non-Disclosure</a><b>$14.95</b><br /> <a href="/docs/10090809/" onclick="adClick('Paid-Feat', 'Employee Handbook for Company', '14850101')">Employee Handbook for Company</a><b>$39.95</b><br /> <a href="/docs/8632443/" onclick="adClick('Paid-Feat', 'Limited Liability Partnership Agreement', '14850101')">Limited Liability Partnership Agreement</a><b>$29.95</b><br /> <a href="/docs/8044302/" onclick="adClick('Paid-Feat', 'Office Lease Agreement', '14850101')">Office Lease Agreement</a><b>$8.95</b> <br /> </div> <div class="docs-box-header">Other docs by <a href="/profile/webguy82">Michael </a></div><div class="docs-box"> <div class="doc"> <a href="/docs/15334923/Job-Opportunities-in-Dubai" class="thumb" title="15334923"></a> <div class="titleStats"><a class="title" href="/docs/15334923/Job-Opportunities-in-Dubai">Job Opportunities in Dubai</a> <div class="stats"> Views: 38  |  Downloads: 0</div></div> <div class="clr"></div> </div> <div class="doc"> <a href="/docs/15334922/Instant-High-Paying-Jobs-for-Teens" class="thumb" title="15334922"></a> <div class="titleStats"><a class="title" href="/docs/15334922/Instant-High-Paying-Jobs-for-Teens">Instant High Paying Jobs for Teens</a> <div class="stats"> Views: 72  |  Downloads: 0</div></div> <div class="clr"></div> </div> <div class="doc"> <a href="/docs/15334919/How-to-Wish-Happy-Birthday-in-Different-Languages" class="thumb" title="15334919"></a> <div class="titleStats"><a class="title" href="/docs/15334919/How-to-Wish-Happy-Birthday-in-Different-Languages">How to Wish Happy Birthday in Different Languages</a> <div class="stats"> Views: 88  |  Downloads: 0</div></div> <div class="clr"></div> </div> <div class="doc"> <a href="/docs/15334918/How-Do-I-Put-Music-On-My-PSP" class="thumb" title="15334918"></a> <div class="titleStats"><a class="title" href="/docs/15334918/How-Do-I-Put-Music-On-My-PSP">How Do I Put Music On My PSP</a> <div class="stats"> Views: 33  |  Downloads: 0</div></div> <div class="clr"></div> </div> <div class="doc"> <a href="/docs/15334917/Free-to-Air-Receiver-and-Files" class="thumb" title="15334917"></a> <div class="titleStats"><a class="title" href="/docs/15334917/Free-to-Air-Receiver-and-Files">Free to Air Receiver and Files</a> <div class="stats"> Views: 27  |  Downloads: 0</div></div> <div class="clr"></div> </div> <div class="doc"> <a href="/docs/15334916/Cruise-Line-Job-Oppurtunities-Available-on-Both-Land-and-Sea" class="thumb" title="15334916"></a> <div class="titleStats"><a class="title" href="/docs/15334916/Cruise-Line-Job-Oppurtunities-Available-on-Both-Land-and-Sea">Cruise Line Job Oppurtunities Available on Both Land and Sea</a> <div class="stats"> Views: 110  |  Downloads: 0</div></div> <div class="clr"></div> </div> <div class="doc"> <a href="/docs/15334914/Best-College-Majors-To-Make-Money" class="thumb" title="15334914"></a> <div class="titleStats"><a class="title" href="/docs/15334914/Best-College-Majors-To-Make-Money">Best College Majors To Make Money</a> <div class="stats"> Views: 49  |  Downloads: 0</div></div> <div class="clr"></div> </div> <div class="doc"> <a href="/docs/15334061/How-to-Write-a-Persuasive-Essay" class="thumb" title="15334061"></a> <div class="titleStats"><a class="title" href="/docs/15334061/How-to-Write-a-Persuasive-Essay">How to Write a Persuasive Essay</a> <div class="stats"> Views: 125  |  Downloads: 1</div></div> <div class="clr"></div> </div> <div class="doc"> <a href="/docs/15333032/13-Pillars-of-Internet-Marketing" class="thumb" title="15333032"></a> <div class="titleStats"><a class="title" href="/docs/15333032/13-Pillars-of-Internet-Marketing">13 Pillars of Internet Marketing</a> <div class="stats"> Views: 5  |  Downloads: 0</div></div> <div class="clr"></div> </div> <div class="doc"> <a href="/docs/15014649/What-the-moon-saw-and-other-tales---Hans-Candersen" class="thumb" title="15014649"></a> <div class="titleStats"><a class="title" href="/docs/15014649/What-the-moon-saw-and-other-tales---Hans-Candersen">What the moon saw, and other tales - Hans Candersen</a> <div class="stats"> Views: 21  |  Downloads: 0</div></div> <div class="clr"></div> </div> <div class="doc"> <a href="/docs/15012883/Uncle-Toms-Cabin---Harriet-Stowe" class="thumb" title="15012883"></a> <div class="titleStats"><a class="title" href="/docs/15012883/Uncle-Toms-Cabin---Harriet-Stowe">Uncle Toms Cabin - Harriet Stowe</a> <div class="stats"> Views: 51  |  Downloads: 0</div></div> <div class="clr"></div> </div> <div class="doc"> <a href="/docs/15011903/How-to-Start-Working-As-a-Freelance-Web-Designer-Writer-or-Programmer" class="thumb" title="15011903"></a> <div class="titleStats"><a class="title" href="/docs/15011903/How-to-Start-Working-As-a-Freelance-Web-Designer-Writer-or-Programmer">How to Start Working As a Freelance Web Designer Writer or Programmer</a> <div class="stats"> Views: 123  |  Downloads: 2</div></div> <div class="clr"></div> </div> <div class="doc"> <a href="/docs/15011898/Download-Torrents-Faster---Beginners-Guide" class="thumb" title="15011898"></a> <div class="titleStats"><a class="title" href="/docs/15011898/Download-Torrents-Faster---Beginners-Guide">Download Torrents Faster - Beginners Guide</a> <div class="stats"> Views: 120  |  Downloads: 4</div></div> <div class="clr"></div> </div> <div class="doc"> <a href="/docs/15011894/Classic-make-up-and-beauty---Mary-Quant" class="thumb" title="15011894"></a> <div class="titleStats"><a class="title" href="/docs/15011894/Classic-make-up-and-beauty---Mary-Quant">Classic make-up and beauty - Mary Quant</a> <div class="stats"> Views: 8  |  Downloads: 0</div></div> <div class="clr"></div> </div> <div class="doc"> <a href="/docs/15011172/Chess-basics---Wikibooks" class="thumb" title="15011172"></a> <div class="titleStats"><a class="title" href="/docs/15011172/Chess-basics---Wikibooks">Chess basics - Wikibooks</a> <div class="stats"> Views: 112  |  Downloads: 2</div></div> <div class="clr"></div> </div> </div> </div> </div> </div> <div class="cls"></div><br /> <!-- google_ad_section_start(weight=ignore) --> <div id="footer-wrap"> <div id="footer"> <div class="l-cap"></div> <div class="inner"> <dl> <dt>About:</dt> <dd><a href="/about/" rel="nofollow">What is Docstoc?</a> | <a href="javascript:void window.open('/popterm.aspx?page_id=15','TC','width=800,height=500,menubar=0,location=0,resizable=1,scrollbars=1,status=0')" rel="nofollow">Docstoc Terms of Service</a> | <a href="javascript:void window.open('/popterm.aspx?page_id=102','TC','width=800,height=500,menubar=0,location=0,resizable=1,scrollbars=1,status=0')" rel="nofollow">DocStore Terms of Service</a> | <a href="javascript:void window.open('/popterm.aspx?page_id=22','TC','width=800,height=500,menubar=0,location=0,resizable=1,scrollbars=1,status=0')" rel="nofollow">Privacy Policy</a> | <a href="/FAQ/" rel="nofollow">FAQs</a></dd> </dl> <dl> <dt>Links:</dt> <dd><a href="http://blog.docstoc.com/" onclick="outbound('blog.docstoc.com')">Docstoc Blog</a> | <a href="https://www.docstoc.com/pro/" rel="nofollow">Join Pro</a> | <a href="/requests/" rel="nofollow">Requests</a> | <a href="/docsters/">Docsters</a> | <a href="/upload/" rel="nofollow">Upload</a> | <a href="/User/cmsstatic.aspx?page_id=100" rel="nofollow">DMCA Guidelines</a> | <a href="/DMCA/" rel="nofollow">DMCA Notification</a> | <a href="http://platform.docstoc.com/" rel="nofollow">Docstoc API</a> | <a href="/feeds/rssfeed.aspx" rel="nofollow">RSS Feeds</a> <a href="/feeds/rssfeed.aspx" rel="nofollow"><img src="/i/ico/rss-sm.gif" alt="RSS Feeds" /></a></dd> </dl> <dl> <dt>Contact:</dt> <dd><a href="/contact/" rel="nofollow">Contact Us</a> | <a href="http://docstoc.suggestionbox.com/" rel="nofollow">Suggest Features</a> | <a href="/jobs/" rel="nofollow">Join Our Team</a></dd> </dl> <dl> <dt>Share:</dt> <dd><a href="/Embed-Documents/">Embed Documents</a> | <a href="/OneClick/">Docstoc OneClick</a> | <a href="/Sync/">Docstoc Sync</a> </dd> </dl> </div> <div class="r-cap"></div> <div class="copyright">© Docstoc 2009. All rights reserved.</div> </div> </div> <!-- google_ad_section_end --> <br /> </div> <script type="text/javascript"> google_spot_id='google-ad-pos6'; google_ad_client='pub-7343870454215956'; google_ad_output='js'; google_max_num_ads='3'; google_ad_type='text'; google_ad_channel='2191561729+4602665424+4177445847'; google_feedback='on'; googleAdStyle='v'; googleAdChannel='2191561729+4602665424+4177445847'; google_hints = 'How to build a custom Wordpress theme'; </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> <script type="text/javascript"> google_spot_id='google-ad-pos1'; google_ad_client='pub-7343870454215956'; google_ad_output='js'; google_max_num_ads='3'; google_ad_type='text_image_flash'; google_ad_channel='5056562550+4602665424+7854647415 '; google_feedback='on'; googleAdStyle='728x90'; googleAdChannel='5056562550+4602665424+7854647415 '; google_hints = 'How to build a custom Wordpress theme'; google_image_size='728x90'; </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> <script type="text/javascript"> google_spot_id = 'ad-spot3' google_ad_client = 'pub-7343870454215956'; google_ad_output = 'js'; google_max_num_ads = '5'; google_ad_type = 'text_html'; google_ad_channel ="4602665424+4302083651+3243318210" google_feedback = 'on'; googleAdStyle = 'v'; </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> <script src="http://www.google-analytics.com/ga.js" type="text/javascript"></script> <script type="text/javascript"> var pageTracker =''; if (_gat && _gat!=null && _gat!=undefined){ pageTracker = _gat._getTracker("UA-1289929-1"); pageTracker._trackPageview(); } </script> <script type="text/javascript"> recordEndTime(); makeDD('ddTarget', 'ddDocuments', 'top'); makeDD('ddTargetMyDocs', 'ddMyDocs', 'top'); makeDD('ddTargetMyColl', 'ddMyColls', 'top');</script> <script type="text/javascript"> //<![CDATA[ var CurrentUsername = ''; var CurrentUserID = '-10'; DocumentID = 14850101;DocumentUrl='http://www.docstoc.com/docs/14850101/How-to-build-a-custom-Wordpress-theme';DocumentOwnerID='1679544';DocumentOwnerUsername='webguy82';DocumentFilename='How_to_build_a_custom_wordpress_theme.pdf';DocumentType='pdf';DocumentTitle='How to build a custom Wordpress theme';DocumentCategoryID=14;DocumentSubCategoryID=236;DocumentError=0;DocumentRotation=0;DocumentSubSubCategoryID=0;//]]> </script> <!-- Revenue Science API --> <script src="http://js.revsci.net/gateway/gw.js?csid=K08784"></script> <script> DM_addEncToLoc("pid","DOCS"); DM_addEncToLoc("category","14"); DM_addEncToLoc("sc_id","236"); DM_addEncToLoc("sc2_id","0"); DM_tag(); </script> <!-- Revenue Science API --> </form> </body> </html>