go to bottom of the functions.php file
if last line has
“?>” this tag then paste this code
after “?>” this tag
<?php
function custom_js() {
?>
<script>
jQuery(“.apptitle”).each(function() {
if(jQuery(this).html().indexOf(“-“)!==-1){
var s=jQuery(this).html();
jQuery(this).html(s.replace(/-/g, ‘ ‘));
}
});
</script>
<?php }
add_action(“wp_footer”,”custom_js”);
?>
***********************************
if last line has no “?>” tag then
use this code :
function custom_js() {
?>
<script>
jQuery(“.apptitle”).each(function() {
if(jQuery(this).html().indexOf(“-“)!==-1){
var s=jQuery(this).html();
jQuery(this).html(s.replace(/-/g, ‘ ‘));
}
});
</script>
<?php }
add_action(“wp_footer”,”custom_js”);
?>