To remove the “Project Description” and “Project Details” sections from all projects you upload, you can make the following modifications to the single-project.php
file:
1.Admin Panel > Left Menu > Appearance > Editor > Open the single-project.php
file for edit
2.Locate the following code block:
<?php $projDescription = get_post_custom_values('projDescription'); ?>
<?php if ( $projDescription && $projDescription[0] != "" ) : ?>
<h1 class="as_heading">
<?php esc_html_e('Project Description', 'tishonator') ?>
</h1>
<?php echo $projDescription[0]; ?>
<div class="clear"></div>
<?php endif; ?>
<h3 class="as_heading mt-3"><?php esc_html_e('Project Details', 'tishonator') ?></h3>
<div class="sidebar-after-title"></div>
<ul class="project-details">
<!-- Project details code -->
</ul>
3. Remove the entire code block mentioned above, starting from $projDescription = get_post_custom_values('projDescription');
until the closing </ul>
tag. After removing it, the code should look like this:
<div id="main-content-wrapper">
<div id="main-content-full">
<?php if (have_posts()) :
while ( have_posts() ) :
the_post();
?>
<section id="portfolio" class="clearfix">
<div class="container">
<div class="row mb-30">
<div class="col-12">
<?php the_post_thumbnail('full'); ?>
</div>
<div class="col-8 col-md-5">
<!-- Other project information -->
</div>
<div class="col-12 mt-3">
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php the_content(); ?>
</article>
</div>
</div>
</div>
</section>
<div class="clear"></div>
<?php
endwhile;
?>
<?php else :
// if no content is loaded, show the 'no found' template
get_template_part( 'content', 'none' );
endif; ?>
</div>
</div>
4. Save the changes to the file.
After making these modifications, the “Project Description” and “Project Details” sections will no longer be displayed on the project pages. The main content of the project, including the image, will be centered and take up the full width of the page.