@extends('layouts.app')
@section('content')
- @include('partials.page-header')
- @if (! have_posts())
- <x-alert type="warning">
- {!! __('Sorry, but the page you are trying to view does not exist.', 'sage') !!}
- </x-alert>
+ @php
+ // Fetch content from page named 'erreur-404'
+ // ToDo: make this more robust
+ $page = get_page_by_path('erreur-404');
+ $pageID = $page->ID;
+
+ if ($pageID) {
+ echo \Elementor\Plugin::instance()->frontend->get_builder_content_for_display($pageID);
+ }
+ @endphp
- {!! get_search_form(false) !!}
- @endif
@endsection