How to remove category from Portfolio in Zelle

Make sure that you're using a child theme before touching any line of code. After setting up a child theme, create a /sections/ folder inside your child theme and copy your /sections/portfolio.php file from your parent theme to your child theme.

Find and remove the following code from your portfolio.php file:

<div class="details white-text">
	<?php
		$categories = get_the_category();
		$separator = ' ';
		if($categories):
			foreach($categories as $category):
				echo $category->cat_name.$separator;
			endforeach;
		endif;
	?>
</div>

Save your changes and you're good to go!

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us