Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #859641

    Hello,

    with the following code in functions.php I was already able remove the “Archive for: Category” in the title bar:

    add_filter('avf_which_archive_output','avf_change_which_archive', 10, 3);
    function avf_change_which_archive($output)
    {
    	if(is_category()) {
    		$output = single_cat_title('',false);
    	}
    	return $output;
    }

    How can I remove it for the tag archive as well?

    Thank you for your help in advance.

    Best regards
    Sophie

    #859898

    Hey Sophie,

    Can you please screenshot the area that you need help with? Also, please provide a link to the page in question.

    Best regards,
    Jordan Shannon

    #860150

    Hey Jordan,

    yes of course. Please kindly find the screenshot and the link to page in question in private content box.

    Kind regards,
    Sophie

    #860675

    Hi,

    Add the following to quick css:

    
    .archive h3.post-title.tag-page-post-type-title{
    display:none!important;
    }

    For the other title can you please share admin info so I can look into this further.

    Best regards,
    Jordan Shannon

    #861440

    Hey Jordan,

    thank you, the code is working :-) . Yes sure, please kindly find the login details in the private content box. Thank you for your help in advance.

    Kind regards,
    Sophie

    #862300

    Hi,

    Please replace the filter in the functions.php file.

    add_filter('avf_which_archive_output','avf_change_which_archive', 10, 3);
    function avf_change_which_archive($output)
    {
    	if( is_category() || is_tag() ) {
    		$output = single_cat_title('',false);
    	}
    	return $output;
    }

    Best regards,
    Ismael

    #862461

    Hi Ismael,

    thank you for your reply. I am already using this code for removing the “Archive for:” in “Archive for: Category”, but this is not working for the “Archive for: Tag”. Can you help and tell how to remove it for the tags?

    Thanks and best regards,
    Sophie

    #863191

    Hi,

    It’s different. We added the “is_tag” conditional function. Please try it again.

    Best regards,
    Ismael

    #863398

    Hi Ismael,

    ah sorry, I did not see that. I replaced my code with your above one – and it works :-) ! Awesome! Thank you for your help, Ismael. You can close this topic out now.

    Best regards,
    Sophie

    #863438

    Hi Sophie,

    Glad we got things working for you! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #863494

    Thank you, Victoria. I think you can close this out :-) .

    Have a great day!

    Best regards,
    Sophie

    #863643

    Hi,

    If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Remove "Tag archive for: TAG" in title bar’ is closed to new replies.