Override theme's shortcodes.php
-
I have created a child theme to override a theme that i bought. The original theme has a file called functions/shortcodes.php which has the following function:
function ag_divider( $atts, $content = null ) { extract(shortcode_atts(array( ), $atts)); $out = '<div class="divider"><h5><span>'.do_shortcode($content).'</span></h5></div>'; return $out; } add_shortcode('divider', 'ag_divider');
How do I override this function in my child theme? All I want to do is change the <h5> to an <h2>, but I rather not do this in the original file.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Override theme's shortcodes.php’ is closed to new replies.