Custom styles.css sheet for visual editor

You don’t have to specify a file for the editor style. Just use add_editor_style(); in your functions.php, and then create a file called editor-style.css in your theme folder. You may want to look at some examples (e.g. Twenty Eleven) for some of the TinyMCE-specific rules, which is the stock visual editor you’re referring to.

Don’t display html if function returns nothing

<?php global $related_posts_thumbnails; if ($related_posts_thumbnails->get_html()) { ?> <div id=”relatedproducts”> <h1>Related Products</h1> <?php get_related_posts_thumbnails() ?> </div> <?php } ?> A quick look at the get_related_posts_thumbnails() shows that it is simply echoing the HTML returned from the get_html() method of the $related_posts_thumbnails object. By checking the returned HTML first, you can make sure it is not an … Read more

debugging errors.. how to remedy?

Replace get_bloginfo( ‘siteurl’ ) with home_url(). As the get_bloginfo() Codex entry explains, siteurl is deprecated: ‘siteurl”https://wordpress.stackexchange.com/”home (note this is deprecated! from version 2.2)”https://wordpress.stackexchange.com/”url’ – Returns the ‘Site address (URL)’ set in Settings > General. This data is retrieved from the ‘home’ record in the wp_options table. Consider using home_url() instead.

How to set the default avatar of buddypress avatar [closed]

As @shanebp said: You can define the default avatar site-wide by using BP_AVATAR_DEFAULT For this you can define the constant(s) BP_AVATAR_DEFAULT and/or BP_AVATAR_DEFAULT_THUMB inside the bp-custom.php as described at the buddypress codex page Customizing BuddyPress Avatars, for example like this: Code: $upload_dir = wp_upload_dir(); $url_default_avatar = $upload_dir[‘baseurl’] . ‘/defaults/buddypress/default-member-avatar.png’; $url_default_avatar_thumb = $upload_dir[‘baseurl’] . ‘/defaults/buddypress/default-member-avatar-thumb.png’; define … Read more

register_sidebar_widget is deprecated since version 2.8! Use wp_register_sidebar_widget() instead

From your title: register_sidebar_widget() is deprecated since version 2.8! Use wp_register_sidebar_widget() instead. Somewhere in your Theme – in functions.php, or in a function included within functions.php – you’re adding custom Widgets. Look for that code, and replace usage of register_sidebar_widget() with wp_register_sidebar_widget(). PROTIP: Use the Log Deprecated Notices Plugin to track down where the deprecated … Read more