Show categories without being active links

Hi!

Congratulations for the theme and the great support.

I have created a category page where I list my categories but I don’t want them to have any links attached to them either in image, button or text. I have created my category-name.php from the archive.php and stored it in my Child folder. I found the below code on this link but I don’t arrive to find where I can include it in Illdy’s files. I understand I need to find the get_the_category function in one of the phps and insert that code somewhere…


<?php
foreach((get_the_category()) as $category) {
    echo $category->cat_name . ' ';
}
?>

Am I doing something wrong? Please help!

Thanks!