change sub title in child theme

Home Forums Legacy Support Support queries Child Themes change sub title in child theme

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #142455
    hamidhakaki
    Spectator
    Hi How change blog sub title tags from h5 to h2. i find it in includes/func.php but how i can use it in child theme.
    #142564
    Diana
    Participant
    @hamidhakaki, I can give you the javascript code to change the title tag instead of overwriting it.
    #142601
    hamidhakaki
    Spectator
    thanks, please give it to me and explain how can i use it?
    #142636
    Diana
    Participant
    @hamiddhakaki, Please Go to wp-admin > WPLMS > Footer > Google Analytics Code and paste the below given script with these script tags. <script> $(document).ready(function(){ $(".blog .pagetitle h5").replaceWith(function () { return "<h2>" + $(this).text() + "</h2>"; }); }); </script>
    #142656
    hamidhakaki
    Spectator
    thanks alot, it work with little change $(document).ready(function(){ $(".pagetitle h5").replaceWith(function () { return "" + $(this).text() + ""; }); });
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘change sub title in child theme’ is closed to new replies.