Search
Close
AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
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,616 Views
(@info1)
Eminent Member
Joined: 12 years ago
Posts: 26
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
  [#68]

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: 11 years ago
Posts: 4245
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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: 12 years ago
Posts: 26
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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: 11 years ago
Posts: 4245
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Have you tried this:

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


   
ReplyQuote
(@info1)
Eminent Member
Joined: 12 years ago
Posts: 26
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

I just tried it, but still no effect 🙁



   
ReplyQuote
 Tom
(@tomson)
Famed Member Admin
Joined: 11 years ago
Posts: 4245
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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