🇩🇪Germany @ikke

Account created on 11 September 2005, about 19 years ago
#

Recent comments

🇩🇪Germany ikke

Maybe this helps:
Before a Olivero subtheme was finally displayed as desired not only under Drupal 9, but also under Drupal 10, only one thing was missing.

Let's say the copied Olivero subtheme is called "coco".

In /themes/custom/coco/src/, OliveroPreRender.php then becomes CocoPreRender.php (even if the theme itself actually starts with a lowercase letter, the file name of this file must start with an uppercase letter).

The file still contains the following in line 12...
class OliveroPreRender implements TrustedCallbackInterface {
...then...
class CocoPreRender implements TrustedCallbackInterface {
.

And now back up to line 3, where it becomes (and I haven't read this anywhere else)...
namespace Drupal\olivero;
...then...
namespace Drupal\coco;

Now into the file coco.theme:
Line 8
use Drupal\coco\CocoPreRender;
Line 550
$info['text_format']['#pre_render'][] = [CocoPreRender::class,
line 555
$info['status_messages']['#pre_render'][] = [CocoPreRender::class,

I created the original working version of my Olivero subthemes for Drupal 8+9 with the help of
https://github.com/mherchel/olivero-subtheme
. I had to make the additional changes described above so that it also runs under Drupal 10.

🇩🇪Germany ikke

Maybe I had a similar problem, the places were no longer displayed correctly on the map, instead I ended up somewhere in the sea.
With me it was probably because Google changed something with the Apis.
Go to:
https://console.cloud.google.com/google/maps-apis/api-list

Click on the project for which you created the API key. Find "Apis and Services" in the left navigation.

There I activated all possible geo apis and then the correct addresses were found again.
At least to pin addresses on a map correctly. Proximinity search works as well.

Hope that helps (automatically translated into English).

Ikke

Production build 0.71.5 2024