I would like to be able to remove this plugin JS and CSS from the HEAD section of my home page and continue to display them inside the individual articles.
How could I achieve that?
I tried to add these lines:
wp_dequeue_script( 'front-end-scripts-js' );
wp_dequeue_script('acp-ajax-js');
wp_dequeue_style('jcarousel');
wp_dequeue_script('jcarousel-min-js');
wp_dequeue_script('jcarousel-js-fixed');
wp_dequeue_script('jcarousel-js');
wp_dequeue_style('prev-next-layout-css');
wp_dequeue_script('prev-next-layout-js');
Inside my 'functions.php' file, but nothing happened 🙂
Thanks,
Mihai
Hi info1,
Please open the /advanced-content-pagination/acp.php file and find this code: http://screencast.com/t/glLMqSvj8
And replace it to this: http://screencast.com/t/6UkwDfKkN
We'll add this change in next version so you'll be able to update it without any issue.
Hi Tom,
Unfortunately it doesn't remove them.
Before posting this topic, I tried to use:
if (is_home()) { } else {
...
}
But that didn't work either.
Trying now:
if (is_singular()) {
...
}
produces no result.
Please check on your side.
Thanks,
Mihai
Have you tried this:
if( is_single() || is_page() ){ }
I just tried it, but still no effect 🙁
Do you have cache plugin installed? please make sure you reset your cache. We test those on our sites it works fine. Something wrong with your WP or theme.