Open Baptistecottey opened 4 years ago
Do you use the weDocs theme? If yes, try changing to a default WordPress theme.
Hello,
On the front website yes i'm using weDocs theme. On admin this is the default wordpress admin template.
Try changing the weDocs theme, it's not compatible with the latest WordPress. Switching to any default WordPress theme might help.
Yes, you're right.
It works with default Wordpress theme.
Do you plan to update weDocs theme ?
We have a different plan. Stay with us :)
Thanks
Glad to hear it ! Thank you :)
Not loading the styles is caused by errors:
Notice: Undefined offset: 0 in wp-content/themes/wedocs-develop/lib/cleanup.php on line 96
Notice: Undefined offset: 0 in wp-content/themes/wedocs-develop/lib/cleanup.php on line 97
The errors also cause styles of different plugins not to load in the WordPress admin panel. The problem is solved by modifying the function 'wedocs_clean_style_tag'. Please change the line of the script 'lib/cleanup.php' of the theme 'weDocs':
$media = $matches[3][0] !== '' && $matches[3][0] !== 'all' ? ' media="' . $matches[3][0] . '"' : '';
return '<link rel="stylesheet" href="' . $matches[2][0] . '"' . $media . '>' . "\n";
into:
if (array_key_exists(3, $matches) && is_array($matches) && array_key_exists(0, $matches[3]))
{
$media = $matches[3][0] !== '' && $matches[3][0] !== 'all' ? ' media="' . $matches[3][0] . '"' : '';
return '<link rel="stylesheet" href="' . $matches[2][0] . '"' . $media . '>' . "\n";
}
else
{
return $input;
}
Hello @kamilszmit
It works !
Thank you for your fix :)
Hello @kamilszmit
You can create a pull request to contribute to weDocs. I believe that will help a lot of people who use and loves weDocs :)
Thanks
Hello,
Since i have updated my Wordpress to last version ( 5.3.2 ) it looks the CSS of wedocs isn't loaded :
I'm using the last plugins version.