Override HTML output from a function
-
Good Morning!
I would like to figure out how I can edit, via the functions.php of my ChilTheme, the HTML code generated by a function of the thema.
I have this code:
function crumina_social_icons() { global $one_touch_option; if (!$one_touch_option['expand_social_icons']){ $class="closed"; } else { $class="opened"; } if ($one_touch_option['soc_ico_panel']) : echo ' <div class="row"><div class="large-12 columns"> <div id="panel"> <a id="open-social-button" href="#"> <i class="linecon-globe"></i> <span class="desc">' . __('Pagine SOCIAL', 'crum') . '</span> <span>' . __('GDP', 'crum') . '</span> </a> <div id="soc-icons-wrap" class="' . $class . '">'; crum_social_networks(); echo '</div> </div> </div></div>'; endif; } add_action('reactor_header_after', 'crumina_social_icons', 2);I was trying to create a function like:
add_filter('reactor_header_after', 'crumina_social_icons_custom');
to replace the text “Pages SOCIAL” or other …How should I proceed?
Thanks.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Override HTML output from a function’ is closed to new replies.