File: /home/atiscoir/public_html/wp-content/themes/servin/single.php
<?php
/**
* The template for displaying all single posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package WordPress
* @subpackage Servin
* @since 1.0.0
*/
get_header();
$theme_option = get_option('tmt_theme_config_option', [] );
$id = $theme_option['tmt-single-post'];
if(!empty($id)) {
TMT_Elementor::get_single_content();
} else {
while ( have_posts() ) : the_post();
$title = get_the_title();
echo "<div class='content' style='max-width: 800px;margin: 50px auto;'>";
tmt_post_thumbnail('large');
echo "<h1>$title</h1>";
the_content();
echo "</div>";
endwhile;
}
get_footer();