Improve wp acorn compability

This commit is contained in:
Jan-Niclas Loosen
2026-06-29 19:54:12 +02:00
parent 7f3fd36186
commit 102abe7927
28 changed files with 4090 additions and 1980 deletions
@@ -6,9 +6,10 @@ new class extends Component
{
public string $content = '';
public function sayHello(): void {
$this->content = 'Hello World by Livewire Wordpress Stack!';
}
public function sayHello(): void
{
$this->content = 'Hello World by Livewire Wordpress Stack!';
}
};
?>
+2 -2
View File
@@ -1,3 +1,3 @@
<div>
<livewire:say-hello />
</div>
<livewire:acorn-starter::say-hello />
</div>
@@ -1,2 +0,0 @@
<!-- Livewire Config -->
@livewireScriptConfig
@@ -1,8 +0,0 @@
@php($livewireUrl = plugins_url('village-archive/vendor/livewire/livewire/dist/livewire.esm.js'))
<script type="module">
import { Livewire } from '{{ $livewireUrl }}';
Livewire.start();
</script>
@livewireStyles