Add more widget areas to a theme

You have to add this code in the functions.php file: /** * Register new sidebar * */ function new_sidebar_widget_init() { register_sidebar( array( ‘name’ => ‘new-sidebar’, ‘id’ => ‘new-sidebar’, ‘before_widget’ => ‘<div id=”new-sidebar”>’, ‘after_widget’ => ‘</div>’, ‘before_title’ => ”, ‘after_title’ => ”, ) ); } add_action( ‘widgets_init’, ‘new_sidebar_widget_init’ ); and then call the sidebar from a … Read more

Force theme or disallow theme change

Lot of useless comments on this post from what seems like a pretty simple question. change below $theme_directory_name=”twentyfourteen”; to your theme… thats all you have to do. First function sets your theme no matter what. Second one disables interface to edit themes. function selfish_hardcoded_theme() { $theme_directory_name=”twentyfourteen”; add_filter( ‘template’, create_function( ‘$template’, ‘return “‘ . $theme_directory_name . … Read more

How to merge two WordPress themes?

Milo is correct, it is a very broad question. That said, what you want to do is totally doable, BUT, it is going to take effort. There is no easy way in mergin two themes into one. You will have to set up a completely new theme, and then you have to start to extract … Read more

An unexpected error occurred. Something may be wrong with WordPress.org

This error indicates that your WP installation couldn’t perform a network request to remote API. Either because it’s prevented from doing so in general (by firewall for example) or core couldn’t correctly determine and/or use available HTTP transport. Core Control plugin is a good starting point to log and troubleshoot such network errors.

Execute filter in theme as last

Yes set priority to something like 999 or something really high. The default priority is 10, and you currently have yours at 1 and therefore will occur first. The priority is explained in the codex: http://codex.wordpress.org/Function_Reference/add_filter notably: $priority (integer) (optional) Used to specify the order in which the functions associated with a particular action are … Read more