Migration to WordPress 3 Quick Guide

To much information and still finding it a bit scary, lets us make it very easy, this quick guide is all the code changes except the styling, there are only three code block to do honest, first we need to find the header.jpg in the images folder, and write down the width and height, download the files below and lets get going.

You can download the theme migration files Here: Migrate Artisteer to WordPress 3 (1458)

To add the migration files to an existing theme copy the two files from the zip file to the themes main folder,  while we are there we will create a folder inside the themes images folder called headers, so our folder files looks like this.

This is the text snippets, it will open in your browser so you can copy the text to your plan text editor : Migration Code Snippets (1403), or just copy the code below, use view source no not copy to clipboard and do not select and copy.

Select this block of text from the text file, open functions.php and paste this in a couple of lines from the text file after the <?php tag

/* Add these lines at the start of functions.php */
/* Digiatl Raindrops WordPress Version 3 Support */
if (file_exists(TEMPLATEPATH. '/custom-functions.php')) include_once(TEMPLATEPATH. '/custom-functions.php');

Open header.php and find this line


Replace the line of code with these lines from the text file

&lt;!-- Allow Background Change --&gt;
&lt;body &lt;?php body_class(); ?&gt;&gt;

Find this line of code

&lt;div class=&quot;art-header-jpeg&quot;&gt;&lt;\div&gt;

Replace the code with this block of code from the text file.

&lt;!-- If you want  header support then Replace the &lt;div&gt;&lt;\div&gt; with this block --&gt;
&lt;!-- Start Digital Raindrops Migrate Artisteer to WordPress 3 --&gt;
 &lt;div class=&quot;art-header&quot;&gt;
  // Start Twenty Ten theme code - Check if this is a post or page, if it has a thumbnail, and if it's a big one
  if ( is_singular() &amp;&amp;
   has_post_thumbnail( $post-&gt;ID ) &amp;&amp;
   ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post-&gt;ID ), 'post-thumbnail' ) ) &amp;&amp;
   $image[1] &gt;= HEADER_IMAGE_WIDTH ) :
   // Houston, we have a new header image!
   echo get_the_post_thumbnail( $post-&gt;ID, 'post-thumbnail' );
  else : ?&gt;
   &lt;img src=&quot;&lt;?php header_image(); ?&gt;&quot; width=&quot;&lt;?php echo HEADER_IMAGE_WIDTH; ?&gt;&quot; height=&quot;&lt;?php echo HEADER_IMAGE_HEIGHT; ?&gt;&quot; alt=&quot;&quot; /&gt;
  &lt;?php endif;
  // End Twenty Ten theme code - Check if this is a post or page, if it has a thumbnail, and if it's a big one
&lt;!-- Start Digital Raindrops Migrate Artisteer to WordPress 3 --&gt;

Now activate the header options set these options in the custom-functions.php, add the header width and height at this point.

 'theme.changeHeader' =&gt; true, //Allow the header to be changed
 'theme.selectHeader' =&gt; false, //Allow the header to be selected from list
 'theme.thumbnailHeader' =&gt; false, //Select to use thumbnails for page and post headers
 'theme.headerHeight' =&gt; 150, //Enter the header Height
 'theme.headerWidth' =&gt; 980, //Enter the header Width
 'theme.noTitleTextColor' =&gt; true, //Allow the title color to be changed
 'theme.changeBackground' =&gt; true, //Allow the header to be changed

That should get us on the way, look at the admin section header and background options, upload a new header change the background, once we are happy we can upload some headers in the new folder and follow the other tutorials for the menus.  


Code Samples: WordPress Twenty Ten Theme


Note: we do require your feedback to improve our themes and tutorials, please leave your comments good or bad. Code disclaimer information This document contains programming examples therefore, www.DigitalRaindrops.net grants you a nonexclusive copyright license to use all programming code examples from which you can generate similar function tailored to your own specific needs. All sample code is provided by www.DigitalRaindrops.net for learning illustrative purposes only. These examples have not been thoroughly tested under all conditions. www.DigitalRaindrops.net, therefore, cannot guarantee or imply reliability, serviceability, or function of these examples. All programs contained herein are provided to you “AS IS” without any warranties of any kind. The implied warranties of non-infringement, merchantability and fitness for a particular purpose are expressly disclaimed.


We hope you will benefit from our tutorials Membership to this website is not required, however the downloading of some themes and files is restricted to site supporters. You can register for a 10 year ‘Free Supporters Account’ from the members page which will give you access to the source files and free themes, as we introduce premium themes and content some of these these will only be downloadable with a subscription, any revenue from subscriptions is used to support the site costs. This website is a tool to support and promote WordPress and Artisteer, please support, share and give credit for any benefits you gain from the tutorials on this website.

One thought on “Migration to WordPress 3 Quick Guide

Leave a Reply


Connect with Us
Follow Digital Raindrops on Twitter Join Digital Raindrops on Facebook

Related Posts

Posted in Migration

We cannot say how easy it is working with child themes, however we understand that some will prefer editing the original themes, so we are following the child tutorials with a simple two file upgrade and a set of options to add the new features to existing Artisteer … Continue reading

Read More