While developing a new theme on Wordpress, I just noticed that add_theme_support is not working for me. I called <?php wp_head();?>
before the head ends and <?php wp_footer();?>
before the body ends. I am using Wordpress version 4.1.1. Can anyone help me sorting this out? I am tired after trying so many times but no luck :(
On which hook did you add add_theme_support
?
Please try after_setup_theme
hook like the example below:
add_action('after_setup_theme', 'my_function_after_setup_theme');
function my_function_after_setup_theme() {
add_theme_support('automatic-feed-links');
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With