-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-full-no-content-div.php
48 lines (40 loc) · 1.4 KB
/
page-full-no-content-div.php
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
38
39
40
41
42
43
44
45
46
47
<?php
/**
* Template Name: Full Page With No Content Div
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
get_header();
?>
</div>
</div>
</div>
<!-- top category section //-->
<div class="pageBody clearfix">
<div class="pageTop clearfix">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'page' ); ?>
<?php
// If comments are open or we have at least one comment, load up the comment template
if ( get_theme_mod( 'sparkling_page_comments', 1 ) == 1 ) :
if ( comments_open() || '0' != get_comments_number() ) :
comments_template();
endif;
endif;
?>
<?php endwhile; // end of the loop. ?>
</div>
</div>
<script style="text/javascript">
var breadcrumb = document.getElementsByClassName("breadcrumb")[0];
var entryContent = document.getElementsByClassName("entry-content")[0];
var mainContentArea = document.getElementsByClassName("main-content-area")[0];
breadcrumb.style.marginBottom = '-1px';
entryContent.style.margin = '0';
mainContentArea.style.display = 'none';
</script>
<div class="container main-content-area" style="margin: 0; height: 0;">
<div class="row full-width">
<div class="main-content-inner col-sm-12 col-md-9" style="margin: -1px; height: 0;">
<?php get_footer(); ?>