Do I just need to copy and paste the line of code you put in your last comment over the existing file? Because it appears to be the same. Below is the code from my php file =
<?php if ($category) : //Link to the category page instead of blog page if a category is selected ?>
<a href="<?php echo esc_url(get_category_link(get_cat_ID($cat -> name))); ?>" class="roll-button more-button"><?php echo $see_all_text; ?></a>
<?php else : ?>
<a href="<?php echo get_permalink( get_option( 'page_for_posts' ) ); ?>" class="roll-button more-button"><?php echo $see_all_text; ?></a>
<?php endif; ?>