Problem with registering menus – What to do when other solutions aren’t working?

In regard to this comment: I see – I had things nested incorrectly in my functions.php file – I found that the register_nav_menus() call should not be nested within the theme setup function (function hchw_setup()) To the contrary, inside a callback hooked into after_setup_theme is exactly the right place for calls to register_nav_menus(). Your problem … 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

use add_action(‘wp_head’) in a widget for generating dynamic CSS styles

Once the widgets are being evaluated, the head of your site is completed, so you cannot use wp_head anymore. Adding <style> tags is an option, but will indeed generate a warning from the validator. Using the customizer is possibly confusing, because it is supposed to be about theme looks in general, not about specific widgets. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)