Notifications
Clear all

How to remove the ACP JS and CSS lines from the home page HEAD section?

5 Posts
2 Users
0 Reactions
4,189 Views
(@info1)
Eminent Member
Joined: 10 years ago
Posts: 26
Topic starter  

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


   
Quote
 Tom
(@tomson)
Famed Member Admin
Joined: 10 years ago
Posts: 4214
 

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.


   
ReplyQuote
(@info1)
Eminent Member
Joined: 10 years ago
Posts: 26
Topic starter  

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


   
ReplyQuote
 Tom
(@tomson)
Famed Member Admin
Joined: 10 years ago
Posts: 4214
 

Have you tried this:

if( is_single() || is_page() ){
	
	}

   
ReplyQuote
(@info1)
Eminent Member
Joined: 10 years ago
Posts: 26
Topic starter  

I just tried it, but still no effect 🙁


   
ReplyQuote
 Tom
(@tomson)
Famed Member Admin
Joined: 10 years ago
Posts: 4214
 

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.


   
ReplyQuote
Share:
Scroll to top