Skip to content

How to remove category from Portfolio in Zelle

This guide shows you how to remove the category filter display from the Portfolio section in the Zelle theme by editing the portfolio template in a child theme.

Important notice: This product is now in maintenance mode and is no longer being actively developed or supported. Updates and bug fixes will not be provided unless they relate to security concerns.

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!

Was this helpful?