How to disable thumbnail filter for a specific template part or image size?

Probably the simplest solution is to remove the filter before output: // remove the filter remove_filter(‘post_thumbnail_html’, ‘_sf_responsive_img’, 5, 5); // output template get_template_part( ‘something’ ); // add the filter back on if other code below outputs thumbs that need the filter add_filter(‘post_thumbnail_html’, ‘_sf_responsive_img’, 5, 5);

my own SVN for a plugin/theme

Sure it is possible there is a great chapter about that in the Professional WordPress Plugin Development book (http://www.amazon.de/Professional-WordPress-Plugin-Development-Williams/dp/0470916222). I’ve already got a system for my premium plugins like that. Essentially you have to hook into the WordPress API requests and root them to your own API Here is an example for premium plugins https://gist.github.com/Horttcore/5197032

How to include Google fonts [duplicate]

As you probably know it’s always a good idea to register and enqueue your styles within you functions.php. As you can see in the Codex, there is a given order for the parameters of those functions. Simply put the data of the webfont in: wp_register_style( $handle, $src, $deps, $ver, $media ); wp_enqueue_style( $handle, $src, $deps, … Read more

How to dequeue css files?

Use the correct action hook Notice the action hook being used: add_action( ‘wp_enqueue_scripts’, ‘add_our_scripts’,0); And the action hook you’re defining/using: add_action( ‘test_remove_scripts’, ‘remove_radium_scripts’, 999 ); You need to hook into the same action: add_action( ‘wp_enqueue_scripts’, ‘remove_radium_scripts’, 999 ); Use the correct priority Notice the priority being used: add_action( ‘wp_enqueue_scripts’, ‘add_our_scripts’,0); And the priority you’re using: … Read more

Should I create multiple sidebars, or use or one dynamic sidebar with logic to determine it’s abilities?

Create separate sidebars for each page unless all of them are supposed to display the same set of widgets. I guess you will be managing your sidebar widgets through Appearance Widgets Screen (which displays all registered widgets) so just use register_sidebar() three times or preferably register_sidebars() (set number to 3) within your functions.php file and … Read more

How to include a file only on dashboard widgets page?

You can use the following code. Asuming that the css file style.css is inside the css folder of your theme: function wpse_126614_enque( $hook ) { if ( ‘widgets.php’ != $hook ) { return; } $template_url = get_template_directory_uri(); wp_enqueue_style( ‘admin-style-widget’, $template_url . ‘/css/style.css’ ); } add_action( ‘admin_enqueue_scripts’, ‘wpse_126614_enque’ );