How do I “unhook” / de-register jQuery so that it’s not called as part of wp_footer();?

You don’t want to unregister the script; that would make it unavailable to be enqueued. Rather, you want to dequeue the script. You have two choices: If you know the callback function through which wp_enqueue_script( ‘jquery’ ) is called, you can simply call remove_action( ‘wp_footer’, ‘callback_function_name’ ) More likely, you won’t know the callback function … Read more

modify a output of a widget

I would copy the widget from the core as needed, put it in the theme or plugin, but you should also unregister the core widget you are replacing. That can be done like this: // unregister all default WP Widgets function unregister_default_wp_widgets() { unregister_widget(‘WP_Widget_Pages’); unregister_widget(‘WP_Widget_Calendar’); unregister_widget(‘WP_Widget_Archives’); unregister_widget(‘WP_Widget_Links’); unregister_widget(‘WP_Widget_Meta’); unregister_widget(‘WP_Widget_Search’); unregister_widget(‘WP_Widget_Text’); unregister_widget(‘WP_Widget_Categories’); unregister_widget(‘WP_Widget_Recent_Posts’); unregister_widget(‘WP_Widget_Recent_Comments’); unregister_widget(‘WP_Widget_RSS’); unregister_widget(‘WP_Widget_Tag_Cloud’); … Read more

Add link option to featured image?

you can do that in many ways , for example : add_filter( ‘admin_post_thumbnail_html’, ‘add_something_to_feature_thumb_box’); function add_something_to_feature_thumb_box( $myhtml ) { return $myhtml .= ‘<p>Put your HTML here – if you want a form, put the form.</p>’; } or (better IMHO) : function replace_post_thumbnail_box() { global $post; // get post echo ‘<p> if you want custom field … Read more

Theme showing incorrect update

When it comes to developing your own stuff, it is always the best to make the code yours too, not just the copyright and such. As @Rarst already pointed out, the first thing to check if the theme’s folder. I faced the same issue before and changing the theme’s folder fixed the issue for me. … Read more

Adding dashicon fonts to the admin of pre 3.8 installs

This happens sometimes when the font is sent with a wrong MIME type. application/x-font-woff for example, is wrong. Try to add proper MIME types to your server configuration. In Apache, your can do that in a .htaccess: AddType image/svg+xml .svg AddType application/x-font-ttf .ttf AddType application/x-font-opentype .otf AddType application/vnd.ms-fontobject .eot AddType application/font-woff .woff You should add … Read more

How do I get gallery thumbnail URL and change the default thumbnail size?

The thumbnail size is based on the dimensions defined in WordPress Dashboard > Settings > Media, unless your theme overrides it. how can I make my theme override it? To change default post-thumbnail size, you need to use set_post_thumbnail_size. Add this in your functions.php file: if ( function_exists( ‘add_theme_support’ ) ) { add_theme_support( ‘post-thumbnails’ ); … Read more

What are WooCommerce starter themes? [closed]

if you are going for a e-commerce website here are some really good themes, plugins, and trickes that you will find really helpfull Themes Sommerce Shop: http://themeforest.net/item/sommerce-shop-a-versatile-ecommerce-theme/542001 Demo: http://www.yithemes.com/live/?theme=sommerce wordpress theme Mojo Theme: http://splashingpixels.com/themes/mojo/ Demo: http://mojo.splashingpixels.com/ wordpress theme Eggo Theme: http://splashingpixels.com/themes/eggo/ Demo: http://eggo.splashingpixels.com/ wordpress theme Storefront: Designer http://storefrontthemes.com/themes/designer/ wordpress theme Wootique: http://www.woothemes.com/products/wootique/ Demo: http://demo2.woothemes.com/wootique/ wordpress … Read more