Essentials Grid upgrade

I upgraded the essentials grid and saw on the forum that I had to add a php code to the function php section of my Pro child theme. However, I get the following error message:

Something went wrong. Your change may not have been saved. Please try again. There is also a chance that you may need to manually fix and upload the file over FTP.

I tried several times. What do I do to fix this?

Thanks!

Hello Adrien,

Thanks for asking. :slight_smile:

Can you please let us know the code you have added? Please make sure there’s no syntax related issue else it give some issues.

Thanks.

Hello!

I used this code from a previous thread titled “where to put purchase code?”

function x_essential_grid_theme_setup() {
GLOBAL $EssentialAsTheme;
$EssentialAsTheme = false;
}
add_action( ‘admin_init’, ‘x_essential_grid_theme_setup’ );

Hi Adrien,

You might have inserted incorrect character which resulted to an error. The correct code must be:

function x_essential_grid_theme_setup() {
	GLOBAL $EssentialAsTheme;
	$EssentialAsTheme = false;
}
add_action( 'admin_init', 'x_essential_grid_theme_setup' );

Invalid quotes will result to a fatal error. Would you mind providing us the url of your site with login credentials so we can take a closer look? To do this, you can create a secure note with the following info:
– Link to your site
– WordPress Admin username / password

To know how to create a secure note, please check this out: https://theme.co/apex/forum/t/how-to-get-support/288

Thank you.

Hi, I’ve sent a secure note. That code didn’t work, could it be because I have the Pro theme and this code mentions “x”?

Thanks!

Hi There,

I would like to check your website but the username/password is incorrect.

Could you please double check?

Meanwhile, this issue might be your website doesn’t allow to edit the source code directly. Please try editing your functions.php file via the FTP account instead.

https://www.webnots.com/how-to-edit-functions-php-file-and-add-new-functions-in-wordpress/

Let us know how it goes!

So sorry, I had to update the password. It should work now.

Hi Adrien,

It could be file editing is not allowed, even by just adding extra empty line displays the same message.

It could be related to security or this https://www.icontrolwp.com/blog/more-wordpress-security-disallow-file-edit-setting-wordpress/. I recommend doing the file editing through FTP instead in the admin or use your hosting’s file manager since it has built-in code editing feature.

Thanks!

I edited it in my FTP and it worked. Thanks!

You’re welcome!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.