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
<!-- Allow Background Change --> <body <?php body_class(); ?>>
Find this line of code
Replace the code with this block of code from the text file.
<!-- If you want header support then Replace the <div><\div> with this block --> <!-- Start Digital Raindrops Migrate Artisteer to WordPress 3 --> <div class="art-header"> <?php // 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() && has_post_thumbnail( $post->ID ) && ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) && $image >= HEADER_IMAGE_WIDTH ) : // Houston, we have a new header image! echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' ); else : ?> <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" /> <?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 ?> </div> <!-- Start Digital Raindrops Migrate Artisteer to WordPress 3 -->
Now activate the header options set these options in the custom-functions.php, add the header width and height at this point.
'theme.changeHeader' => true, //Allow the header to be changed 'theme.selectHeader' => false, //Allow the header to be selected from list 'theme.thumbnailHeader' => false, //Select to use thumbnails for page and post headers 'theme.headerHeight' => 150, //Enter the header Height 'theme.headerWidth' => 980, //Enter the header Width 'theme.noTitleTextColor' => true, //Allow the title color to be changed 'theme.changeBackground' => 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.