Friday, September 13, 2013

Thursday, August 29, 2013

Different thumbnail sizes WP

 Function:
 
if ( function_exists( 'add_theme_support' ) ) {
 add_theme_support( 'post-thumbnails' );
        set_post_thumbnail_size( 150, 150 ); // default Post Thumbnail dimensions
}

if ( function_exists( 'add_image_size' ) ) {
 add_image_size( 'review-thumbnail', 150, 200, true );
        add_image_size( 'movies-thumbnail', 400, 9999 );
}
  
 
Template code:
 
 <?php echo get_the_post_thumbnail($post->ID, 'medium'); ?>

Exclude all robots from the entire server

User-agent: *
Disallow: /
 
and you may use the following

Robots Text Generator Tool

http://www.internetmarketingninjas.com/seo-tools/robots-txt-generator/

Tuesday, February 26, 2013

Changing Text with innerHTML

 <script type="text/javascript">
function changeText(){
 document.getElementById('boldStuff').innerHTML = 'Fred Flinstone';
}
</script>
<p>Welcome to the site <b id='boldStuff'>dude</b> </p> 
<input type='button' onclick='changeText()' value='Change Text'/>

EXAMPLE:

Welcome to the site dude