The issue actually was that the update deleted the plugin theme settings done in the customizer.
Hello @meir321
exactly, Helpful stores things a little differently now. The customizer unfortunately works a bit differently than the rest, so it was difficult to keep the changes there.
You can see if you put the following in your functions.php. After that you can type my-domain.com/?helpful_css=on and check if the settings are still stored somewhere.
add_action('template_redirect', function () {
if (!array_key_exists('helpful_css', $_GET)) {
return;
}
echo get_option('helpful_css');
exit;
});
Alternatively you can put the following in your functions.php and check if something is shown here. In one of the cases your CSS should be visible, if Helpful didn’t clear the old option.
add_action('template_redirect', function () {
if (!array_key_exists('helpful_css', $_GET)) {
return;
}
$options = get_option('helpful_options');
if (array_key_exists('helpful_css', $options)) {
echo $options['helpful_css'];
}
exit;
});
Unfortunately, if none of this works, the settings are gone and I don’t have a solution for that. I had to change the saving altogether because Helpful had saved everything in individual options and cluttered up the database.
Greetings Kevin
Same issue – no results with functions supplied. Is it likely to keep happening on updates that the styling will disappear?
@millertech
Crazy, this was not supposed to happen. I had not changed anything about it either. Maybe it’s better if you place your CSS in the custom CSS of WordPress so this doesn’t happen anymore.
I’ll have to take a look at this first to understand what’s going wrong here.
Greetings Kevin