My parent theme has several block styles for articles (eg. post-block-a, post-block-b, etc.), each one displaying a different UX.
In my child theme, I want to apply a change to a function that is shared across all post blocks but only on the specific block I’m using (eg. post-block-i).
I basically want to remove the
<?php presso_the_category(); ?> and replace with
<?php presso_the_author(); ?>.
I’ve read about adding a function to
functions.php in the child theme to check if a function exists so that it get overridden. However, I don’t want to override the shared function, only the one on the specific
post-block-i I’m using.
How can I potentially achieve this?