Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #721693

    is there a way without having a child-theme tag.php to have as heading not only :

    Portfolio Entries:

    but to have f.e.

    Portfolio Entries of : "tag".

    if i click a tag on tag-cloud – allways the identical heading of output site.

    Thanks
    (it is line 60 on tag.php – is there a functions.php method to change that line)

    • This topic was modified 7 years, 4 months ago by Guenni007.
    #721718

    Hey Guenter!

    You can try using following code

    add_filter('avf_tag_label_names','new_tag_label');
    function new_tag_label(){ 
        if(is_tag()){
        $currenttag = single_tag_title('',false);
        $output = "<h3 class='post-title tag-page-post-type-title'>".$currenttag. "</h3>";
        return $output;
        }
    }

    Cheers!
    Yigit

    • This reply was modified 7 years, 4 months ago by Yigit.
    #722176

    ah – thats fine – looks better!

    #722196

    Hi!

    Nice :)
    Let us know if you have any other questions! :)

    Best regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘tag.php output more specific’ is closed to new replies.