-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate-full-width.php
More file actions
37 lines (29 loc) · 1.01 KB
/
Copy pathtemplate-full-width.php
File metadata and controls
37 lines (29 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
* Template Name: Full Width
* Template Post Type: page, post
*
* A full-width page template without sidebar.
* Compatible with Elementor and Divi Builder.
*
* @package devstarter
* @since 1.0.0
*/
get_header(); ?>
<main class="site-content" id="main-content">
<div class="devstarter-container devstarter-container--wide">
<?php while ( have_posts() ) : the_post(); ?>
<article id="page-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if ( ! devstarter_is_elementor_active() || ! \Elementor\Plugin::$instance->documents->get( get_the_ID() )->is_built_with_elementor() ) : ?>
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
</header>
<?php endif; ?>
<div class="entry-content">
<?php the_content(); ?>
</div>
</article>
<?php endwhile; ?>
</div>
</main>
<?php get_footer(); ?>