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?
Thanks!
- Hiện tại chúng tôi có hơn 25 nghìn bài văn mẫu các thể loại.
- Kho tài liệu, đề thi học sinh giỏi các lớp vô cùng phong phú.
- Mỗi ngày cập nhật hơn 100 đề thi chất lượng từ các website bán tài liệu lớn.
Tải đề thi VIP với giá siêu rẻ tại Vip.Dethihsg247.Com