Yes, I am trying to integrate the single event page into the theme. Here is the unedited code from Undsgn and the edited code per your previous instruction. Here is how the page loads:
https://israelusa.org/event/destruction-of-life-destruction-of-truth-a-tisha-bav-special-program/
I would like for it to be not full screen and use a proper layout. Is it possible?
/**************
*UNEDITED
/**************
<?php
/**
* The Template for displaying all Content Block posts.
*
* @package uncode
*/
get_header();
/**
* DATA COLLECTION – START
*
*/
/** Init variables **/
$with_builder = false;
$style = ot_get_option(‘_uncode_general_style’);
$bg_color = ‘ style-‘.$style.’-bg’;
while (have_posts()):
the_post();
echo ‘<script type=”text/javascript”>UNCODE.initHeader();</script>’;
$the_content = get_the_content();
if (has_shortcode($the_content, ‘vc_row’)) {
$with_builder = true;
}
if ($with_builder) {
$the_content = ‘<div class=”post-content”>’ . apply_filters(‘the_content’, $the_content) . ‘</div>’;
} else {
$the_content = apply_filters(‘the_content’, $the_content);
$the_content = ‘<div class=”post-content”>’ . uncode_get_row_template($the_content, ”, ”, $style, ”, ‘double’, true, ‘double’) . ‘</div>’;
}
/** Display post html **/
echo ‘<article id=”post-‘. get_the_ID().'” class=”‘.implode(‘ ‘, get_post_class(‘page-body’ . $bg_color)) .'”>
<div class=”post-wrapper”>
<div class=”post-body”>’ . uncode_remove_p_tag($the_content) . ‘</div>
</div>
</article>’;
endwhile;
// end of the loop.
get_footer(); ?>
/**************
* end UNEDITED
/**************
/**************
*Begin EDITED
/**************
<?php
/**
* The Template for displaying all Content Block posts.
*
* @package uncode
*/
do_action(‘eventon_before_main_content’);
/**
* DATA COLLECTION – START
*
*/
/** Init variables **/
$with_builder = false;
$style = ot_get_option(‘_uncode_general_style’);
$bg_color = ‘ style-‘.$style.’-bg’;
do_action(‘eventon_single_content_wrapper’);
while (have_posts()):
the_post();
echo ‘<script type=”text/javascript”>UNCODE.initHeader();</script>’;
$the_content = get_the_content();
if (has_shortcode($the_content, ‘vc_row’)) {
$with_builder = true;
}
if ($with_builder) {
$the_content = ‘<div class=”post-content”>’ . apply_filters(‘the_content’, $the_content) . ‘</div>’;
} else {
$the_content = apply_filters(‘the_content’, $the_content);
$the_content = ‘<div class=”post-content”>’ . uncode_get_row_template($the_content, ”, ”, $style, ”, ‘double’, true, ‘double’) . do_action(‘eventon_single_content’) . ‘</div>’;
}
/** Display post html **/
echo ‘<article id=”post-‘. get_the_ID().'” class=”‘.implode(‘ ‘, get_post_class(‘page-body’ . $bg_color)) .'”>
<div class=”post-wrapper”>
<div class=”post-body”>’ . uncode_remove_p_tag($the_content) . ‘</div>
</div>
</article>’;
endwhile;
// end of the loop.
do_action(‘eventon_single_sidebar’);
do_action(‘eventon_single_after_loop’);
do_action(‘eventon_after_main_content’); ?>
/**************
*End EDITED
/**************