Resizing Picture

#sidebar_img img { width: 250px !important; height: auto; } #sidebar_img { text-align: center; } use this css.. change 250px with whatever you want.

Sidebar not visible after changing to new domain

Don’t replace old url to new url in database file. wp-login.php can be used to (re-)set the URIs. Find this line: require( dirname(__FILE__) . ‘/wp-load.php’ ); and insert the following lines below: Do comment/remove these lines. (once the database is updated) update_option(‘siteurl’, ‘http://your.domain.name/’ ); update_option(‘home’, ‘http://your.domain.name/’ ); for more information http://codex.wordpress.org/Moving_WordPress

How to display a sidebar only for blog?

First: is_page() expects a page id, so the call would be is_page(35). Second: get_sidebar needs to be called from the template (not the functions file). You probably already have two templates setup: page.php – In here you’ll call get_sidebar(‘primary’); index.php (assuming your blog is on the home page) – In here you’ll call get_sidebar(‘secondary’); Please … Read more

Only display on sidebar if only got value inserted on post

Try using this: // Get the ‘WpForest_soft’ custom field value. $text = get_post_meta( $post->ID, ‘WpForest_soft’, true ); // Print the value and surrounding markup only if the value tests true. if ( $text ) printf( ‘<tr><td class=”attr-name”>%s</td><td class=”attr-detail”>%s</td></tr>’, __( ‘Software Version’, ‘WpForest’ ), $text ); General Case To do the above with any optional markup … Read more

Placing video content into a sidebar

You can add a meta field along with your post which contains image/video fram url. Now write a plugin or some PHP code which access particular meta tag of a post. And display it. As an alternative you can use some plugin like amtyThumb