Which settings/options are saved on a theme-basis and how does this affect theme-switching?

After doing some research this answer became a bit longer than expected, but this is the essence: TL;DR: Menu placement and Widget placement/order is saved on a Theme basis and can therefore be restored when switching Themes. This does not include the individual settings of Menus and Widgets, so if you change them these changes … Read more

Symlink a directory to wp-content/themes

You can add this to your VagrantFile for “shared folders:” config.vm.synced_folder “/path/to/your/host/projectfolder/theme”, “/path/to/your/vagrant/wp-content/theme”, owner: ‘www-data’, group: ‘www-data’, mount_options: [“dmode=775”, “fmode=664”] http://docs.vagrantup.com/v2/synced-folders/basic_usage.html

Edit theme wp_head

You can remove some default WP links of the head by using remove_action(). For example: // Removes the wlwmanifest link remove_action( ‘wp_head’, ‘wlwmanifest_link’ ); // Removes the RSD link remove_action( ‘wp_head’, ‘rsd_link’ ); // Removes the WP shortlink remove_action( ‘wp_head’, ‘wp_shortlink_wp_head’, 10, 0 ); // Removes the canonical links remove_action( ‘wp_head’, ‘rel_canonical’ ); // Removes … Read more

Widgets vs. Theme Mods

In short: It depends. Widget go into a widget area. But that also means that when you create a widget area any widget can be put there as well as any number of widgets. So if you’d make the logo a widget a user could put twenty different widgets in that spot, including stuff that … Read more