Confit theme on WordPress.org

WordPress.com has now made the theme downloadable via a ZIP file from the theme’s page at: http://theme.wordpress.com/themes/confit/ After installing the theme from within your dashboard, it will then show a message asking if you also want to install their “WordPress.com Theme Updates” plugin.

Implement plugins as part of a theme

First, I would recommend against it. I have a package of plugins that I use on almost all of our websites (both public and internal plugins)… and plugins should really remain plugins. Deploying a package of plugins is not hard or time consuming and only needs to be done once per project. By integrating them … Read more

Custom theme folder

The default theme directory is registered like this in wp-settings.php // Register the default theme directory root register_theme_directory( get_theme_root() ); where function get_theme_root( $stylesheet_or_template = false ) { global $wp_theme_directories; if ( $stylesheet_or_template && $theme_root = get_raw_theme_root( $stylesheet_or_template ) ) { // Always prepend WP_CONTENT_DIR unless the root currently registered as a theme directory. // … Read more

How to remove a file included in parent theme with locate_template() via child theme?

An alternative solution that takes inspiration from both answers by @Milo and @toscho. create your own function to load template, e.g. if ( ! function_exists(‘my_locate_template’) ) { function my_locate_template( $template=””, $load = false, $once = true ) { $filtered = apply_filters(‘allow_child_load_’ . $template, true); if ( ! is_child_theme() || $filtered ) return locate_template($template, $load, $once); … Read more

Same theme name issue with wordpress repository theme

WP checks for updates by sending data about all plugins and themes to the repository. To prevent false update messages for your own code you need to selectively scrub it out of those requests. The example for theme by Mark Jaquith: function cws_hidden_theme_12345( $r, $url ) { if ( 0 !== strpos( $url, ‘http://api.wordpress.org/themes/update-check’ ) … Read more

404 Error while accessing the font files

Please use short path file url rather then absolute path. So code is like: @font-face{ /* for IE */ font-family:FontFamily; src:url(Font.eot); } @font-face { /* for non-IE */ font-family:FontFamily; src:url(http://) format(“No-IE-404”),url(Font.ttf) format(“truetype”); } Make sure that readable web has released it’s first @font-face related software utility for creating natively compressed EOT files quickly and easily. … Read more

PHP files included in functions.php don’t seem to work

I always break my functions.php up into more managable, specific functionality files, for instance, all footer related functions goes into a file called footer-functions.php and pagination functions goes into a file called pagination-functions.php. This way, my code stays organised, managable and I don’t kill my functions.php. This however, is only related to theme specific functions, … Read more

$wp_customize->remove_section for customizer setting?

Assuming you are trying to remove the default nav_menus panel, you have the id wrong. Also, you’ll need to add a priority of at least 20 to the customize_register hook, assuming you’re using that hook. function remove_customizer_settings( $wp_customize ){ $wp_customize->remove_panel(‘nav_menus’); } add_action( ‘customize_register’, ‘remove_customizer_settings’, 20 );