How to prevent Google adsense invalid impressions while performing admin tasks on my wordpress site?

The advertisements are only displayed on the Front-end of your site (whatever the visitors see). Since the ads are only displayed on the front-end, you don’t have to worry about generating invalid impressions by reloading your admin page, creating posts, etc. So long as you don’t open your website’s front-end area and start reloading like … Read more

How to Disable Color Options?

In TwentyTen’s functions.php the custom background is added in twentyten_setup() which is called on the action ‘after_setup_theme’. So, in your child theme, the following should remove the option completely: // Higher priority to work after TwentyTen add_action( ‘after_setup_theme’, ‘wpse12934_remove_custom_background’, 20 ); function wpse12934_remove_custom_background() { remove_custom_background(); }

modify buddpress adminbar only in admin pages

You ca use the conditional tag is_admin() to check if you are on the front-end or back-end like this: function bp_adminbar_currentsite_menu() { global $bp; if (!is_admin()){ ?> <li> <!– Insert your link url or relative url, and your link text below –> <a href=”http://EXAMPLE.COM”>EXAMPLE LINK TEXT</a> </li> <?php } } // Call The Function Above … Read more