Overriding a WordPress parent function that isn’t tied to any actions

I have a parent theme function as follows: /*———————————————————————————–*/ /* Display first image linked portfolio */ /*———————————————————————————–*/ function ct_first_image_linked_portfolio() {…