Can I display the category link in blog page?

Hello there,

I hope you are doing well today.

Before making any changes you need to create a child theme and use that child theme to contain the code changes made to the theme files:

Go to Appearance > Editor > Template Parts > Content and on the 45th line you need to add the following PHP code snippet:


<?php
					/* translators: used between list items, there is a space after the comma */
					$categories_list = get_the_category_list( esc_html__( ', ', 'sparkling' ) );
				if ( $categories_list && sparkling_categorized_blog() ) :
				?>
				<span class="cat-links"><i class="fa fa-folder-open-o"></i>
				<?php printf( esc_html__( ' %1$s', 'sparkling' ), $categories_list ); ?>
				</span>
				<?php endif; // End if categories ?>

I have attached an image of how the code should look.

Best Regards,
Support