Can I display the category link in blog page?

Hi guys,

I have a short question:
On the detail page of a blog entry I can find a category link.
Can I display the category link in blog page too?

Kind regards,

Hi Heiko,

I hope you are well today and thank you for your question.

You can try achieving this by using the attached custom child theme of Sparkling theme that contains some custom code.

Best Regards,

Thank you for the fast reply.
I already use a colorlib-child-theme but I donĀ“t know the version of that.
How can I use your new child theme without losing the changes of my (older) child theme?

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:

					/* 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 ); ?>
				<?php endif; // End if categories ?>

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

Best Regards,

This runs fine. Thank you very much!

Kind regards,

Hello there,

I am glad the solution worked for you.
Please feel free to contact us again in the future regarding any other issues.

Best Regards,