Reply To: Category name post on page

NapitWPTech Theme Support Forums Masonry Brick Category name post on page Reply To: Category name post on page

#156

Bishal Napit
Keymaster

Hi Fra79Valex,

For adding the category names of the posts to the home, search as well as the archive pages too, you can create a child theme and make the adjustments via using the child theme. You can find the tutorial on creating the WordPress child theme here: https://napitwptech.com/tutorial/wordpress-development/tutorial-creating-wordpress-child-theme/.

Here, in the child theme, you might need to duplicate the file template-parts/content.php of the parent theme and then find this below code:

<?php if (is_single()) : ?>
	<footer class="entry-footer">
		<?php masonry_brick_entry_footer(); ?>
	</footer><!-- .entry-footer -->
<?php endif; ?>

in the same file and then just update the code via the code provided below and check:-

<footer class="entry-footer">
	<?php masonry_brick_entry_footer(); ?>
</footer><!-- .entry-footer -->

Also, in order to hide the display of tag if any, you can try this CSS code in the Additional CSS Box provided via the Customizer Options and check:

.home .tags-links, .archive .tags-links, .search .tags-links {
	display: none;
}

If you like the theme and appreciate the work put out on the theme, then, you can help by rating this theme through this link here: https://wordpress.org/support/theme/masonry-brick/reviews/

Thanks.
Bishal Napit