admin管理员组文章数量:1130349
If I am using my own created custom theme, the Post Categories Page in admin panel is not getting updated automatically when I add a new Category. To see the new category I have to reload the page Manually.
When I change to default themes it works as perfectly. So the problem is in my theme.
I think I must have missed something in my functions file.
Any idea what it can be??
If I am using my own created custom theme, the Post Categories Page in admin panel is not getting updated automatically when I add a new Category. To see the new category I have to reload the page Manually.
When I change to default themes it works as perfectly. So the problem is in my theme.
I think I must have missed something in my functions file.
Any idea what it can be??
Share Improve this question edited May 13, 2014 at 18:41 Pieter Goosen 55.5k23 gold badges117 silver badges211 bronze badges asked Apr 20, 2014 at 6:07 rafsuntaskinrafsuntaskin 1002 silver badges12 bronze badges 3- No one has faced this problem?? – rafsuntaskin Commented Apr 24, 2014 at 5:56
- I also facing this error. Any solution for this case? @rafsuntaskin – user65056 Commented Dec 19, 2014 at 21:55
- Check your Function.php file for unwanted spaces from top or bottom. Or may be some Function declaration is not proper – rafsuntaskin Commented Jan 2, 2015 at 16:52
2 Answers
Reset to default 2Locate in your theme's functions.php when you add JavaScript scripts.
function theme_scripts() {
wp_enqueue_style( 'theme-style', get_stylesheet_uri() );
wp_enqueue_script( 'theme-navigation', get_template_directory_uri() . '/app.js', array(), '20170325', true );
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
}
add_action( 'wp_enqueue_scripts', 'theme_scripts' );
And put them at the end of the file functions.php
I have worked doing this action.
If you are facing this problem you should check your themes function.php file. I had some error in that which caused this problem.
If I am using my own created custom theme, the Post Categories Page in admin panel is not getting updated automatically when I add a new Category. To see the new category I have to reload the page Manually.
When I change to default themes it works as perfectly. So the problem is in my theme.
I think I must have missed something in my functions file.
Any idea what it can be??
If I am using my own created custom theme, the Post Categories Page in admin panel is not getting updated automatically when I add a new Category. To see the new category I have to reload the page Manually.
When I change to default themes it works as perfectly. So the problem is in my theme.
I think I must have missed something in my functions file.
Any idea what it can be??
Share Improve this question edited May 13, 2014 at 18:41 Pieter Goosen 55.5k23 gold badges117 silver badges211 bronze badges asked Apr 20, 2014 at 6:07 rafsuntaskinrafsuntaskin 1002 silver badges12 bronze badges 3- No one has faced this problem?? – rafsuntaskin Commented Apr 24, 2014 at 5:56
- I also facing this error. Any solution for this case? @rafsuntaskin – user65056 Commented Dec 19, 2014 at 21:55
- Check your Function.php file for unwanted spaces from top or bottom. Or may be some Function declaration is not proper – rafsuntaskin Commented Jan 2, 2015 at 16:52
2 Answers
Reset to default 2Locate in your theme's functions.php when you add JavaScript scripts.
function theme_scripts() {
wp_enqueue_style( 'theme-style', get_stylesheet_uri() );
wp_enqueue_script( 'theme-navigation', get_template_directory_uri() . '/app.js', array(), '20170325', true );
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
}
add_action( 'wp_enqueue_scripts', 'theme_scripts' );
And put them at the end of the file functions.php
I have worked doing this action.
If you are facing this problem you should check your themes function.php file. I had some error in that which caused this problem.
本文标签: Why adding Categories does not auto refresh in Backend while using my custom theme
版权声明:本文标题:Why adding Categories does not auto refresh in Backend while using my custom theme? 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749200843a2331769.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论