Customize/override testimonial shortcode
Hi!
Before updating to version 21 I had personalized my testimonials: the names had the H5 label and I was not interested.
I customized the functions.php of my child theme with the code:
require_once( get_stylesheet_directory() .'/functions/theme-shortcodes.php' );
And I took the fragment of the themes-shortcodes.php from the testimonial (from the main theme) and copied it into the created folder "child-theme / functions / theme-shortcode.php.
It worked correctly until when I updated to version 21, the shortcodes stop working. So I put the original code again because the site crashes.
Can you tell me the most optimal way to be able to make the modification (override of the testimonial function) of code without having to edit the main theme files?
Thanks!
WP: 5.2.2
PHP: 7.2
Be: 21.3.3
Comments