Mobile theme optimization

Posted in: Newspaper
Post count: 90

There is this link https://www.infophilic.com/get-almost-100-pagespeed-newspaper-theme/ where I see a lot in here.

So the author @amit-2 says, “The current mobile theme version does not support both, Newsletter and Multipurpose plugins. So, it is a good idea to remove these scripts being loaded by these plugins.”

I would like to know if this is still the case or you have updated the mobile theme plugin without these scripts? If not can we also remove TagDiv Composer scripts on mobile?

Thanks

The code he provides is
// Remove Multi Purpose Style

add_action( 'wp_enqueue_scripts', 'infophilic_remove_multi_purpose', 20 );
function infophilic_remove_multi_purpose() {
wp_dequeue_style( 'td-plugin-multi-purpose' );
}

// Remove Newsletter Style

add_action( 'wp_enqueue_scripts', 'infophilic_remove_newsletter', 20 );
function infophilic_remove_newsletter() {
wp_dequeue_style( 'td-plugin-newsletter' );
}

Post count: 21065

Hello @thelastpoet!

You can apply what Amit recommended, but please let the TagDiv Composer scripts there.

Thank you!

Post count: 90

Thanks,

Is there a way we can save the code so it does not get overridden when an update is made to the theme?

Does a plugin like Code Snippets work?

Post count: 21065

Hello @thelastpoet!

Unfortunately, we didn’t tested this plugin for that, but it is better to save it somewhere, so you won’t lose it.

Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.