Buy All 118 Premium WordPress Themes for $59.99
No Additional Fees, Pay Once and Use Unlimited Time for Unlimited Domains, Free Lifetime Updates

Projects Single Page: Remove Description and Details and make image full width

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') ?>
	<?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 -->

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() ) :
				<section id="portfolio" class="clearfix">
  					<div class="container">
  						<div class="row mb-30">
							<div class="col-12">
								<?php the_post_thumbnail('full'); ?>
							<div class="col-8 col-md-5">
								<!-- Other project information -->
							<div class="col-12 mt-3">
								<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
									<?php the_content(); ?>
  				<div class="clear"></div>
	<?php else :
				// if no content is loaded, show the 'no found' template
				get_template_part( 'content', 'none' );
		  endif; ?>

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.

Leave a Reply