Thread Starter
1ian1
(@1ian1)
Is anyone having the same issue, or can help?
Hi @1ian1,
There seems to be a conflict with DIVI and the latest version of Smush. If you temporarily change your theme to TwentySeventeen you will be able to configure Smush and then change your theme back.
We’re currently trying to work out what’s causing the issue and I’ll post back here as soon as a fix is available.
Cheers,
Calum
Thread Starter
1ian1
(@1ian1)
Thanks Calum
yeah, that’s definitely the conflict. I did what you advised and managed to activate smush, and compress the images, though my analysis of the site is still horrendous when it comes to the images.
https://gtmetrix.com/reports/pramaze.com/FEhvdFmu
Should smush fix “serve scaled images” and “optimise images”?
Many thanks
Ian
Hi @1ian1,
If you have access to FTP you can edit the init_hooks() function in /wp-content/themes/Divi/includes/builder/plugin-compat/wp-smushit.php and comment out add_filter( 'wp_smush_enqueue', array( $this, 'wp_smush_enqueue' ) );
e.g.
public function init_hooks() {
// Bail if there's no version found
if ( ! $this->get_plugin_version() ) {
return;
}
//add_filter( 'wp_smush_enqueue', array( $this, 'wp_smush_enqueue' ) );
}
This way you wont have to keep switching between themes to use Smush. I’ve contacted DIVI and asked them to fix this issue.
Smush will compress the images but not automatically resize the images to fit the container unless you have Smush Pro and use our brand new CDN feature.
What you will have to do is go through each of the images listed in GTmetrix and resize the images manually to the recommended sizes shown. Usually your theme should handle this but in this case it’s not.
Best regards,
Calum
Thread Starter
1ian1
(@1ian1)
Sorry, i’m not a coder. I have access to ftp, but that is beyond me. Also, i’m not ready for $49 per month
Thanks anyway, but i’ll find something else
This isn’t going to work for me
can you please explain what does ‘comment out’ means? how do I do that?
@montenegroecoadventuresorg,
Comment out means putting two forward slashes before a line of code: //
In the example above the code (original):
public function init_hooks() {
// Bail if there's no version found
if ( ! $this->get_plugin_version() ) {
return;
}
add_filter( 'wp_smush_enqueue', array( $this, 'wp_smush_enqueue' ) );
}
would become (commented out):
public function init_hooks() {
// Bail if there's no version found
if ( ! $this->get_plugin_version() ) {
return;
}
//add_filter( 'wp_smush_enqueue', array( $this, 'wp_smush_enqueue' ) );
}
So far Divi is reluctant on fixing this, so we will be releasing an update to counter this action, hopefully today.
Best regards,
Anton