* Theme assets
*/
add_action('wp_enqueue_scripts', function () {
- wp_enqueue_style('sage/main.css', asset_path('styles/main.css'), false, null);
+ // NOTE: 'elementor-frontend' is added as a dependency for the main stylesheet to ensure that our stylesheet
+ // is always loaded afterwards, allowing us to override the default styles. On 404 pages, this wasn't happening.
+ wp_enqueue_style('sage/main.css', asset_path('styles/main.css'), ['elementor-frontend'], null);
wp_enqueue_script('sage/main.js', asset_path('scripts/main.js'), ['jquery'], null, true);
}, 100);
+below($breakpoint-hero-block)
position: static
- padding: s('calc(%s + 4vw) 5vw 30px', $header-height)
+ padding: s('calc(%s + 2.5vw) 5vw 40px', $header-height)
bottom: 0
right: 0
font-size: 44px
margin-bottom: 0.5em
+ +below(700px)
+ font-size: 7vw !important
+below(500px)
br
display: none
font-weight: 500
line-height: 1.5
+ +below(700px)
+ font-size: 16px !important
+
&-cta
display: block
color: #fff
margin-top: 30px
+
+ +below(700px)
+ margin-top: 1.5em
@extends('layouts.app')
@section('content')
- @include('partials.page-header')
-
- @if (!have_posts())
- <div class="alert alert-warning">
- {{ __('Sorry, but the page you were trying to view does not exist.', 'sage') }}
- </div>
- {!! get_search_form(false) !!}
- @endif
+
+ @php
+ // Fetch content from page named '404-template'
+ // ToDo: make this more robust
+ $post = get_page_by_path('404-template');
+
+ if ($post) {
+ echo \Elementor\Plugin::instance()->frontend->get_builder_content_for_display(wpml_object_id_filter($post->ID, 'page', true));
+ }
+ @endphp
+
@endsection