-
AuthorPosts
-
October 3, 2017 at 2:24 pm #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
SophieOctober 4, 2017 at 5:57 am #859898Hey 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 ShannonOctober 4, 2017 at 2:45 pm #860150Hey Jordan,
yes of course. Please kindly find the screenshot and the link to page in question in private content box.
Kind regards,
SophieOctober 5, 2017 at 6:02 pm #860675Hi,
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 ShannonOctober 7, 2017 at 9:04 pm #861440Hey 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,
SophieOctober 10, 2017 at 6:36 am #862300Hi,
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,
IsmaelOctober 10, 2017 at 2:00 pm #862461Hi 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,
SophieOctober 12, 2017 at 6:46 am #863191Hi,
It’s different. We added the “is_tag” conditional function. Please try it again.
Best regards,
IsmaelOctober 12, 2017 at 1:10 pm #863398Hi 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,
SophieOctober 12, 2017 at 2:22 pm #863438Hi Sophie,
Glad we got things working for you! :)
If you need further assistance please let us know.
Best regards,
VictoriaOctober 12, 2017 at 3:53 pm #863494Thank you, Victoria. I think you can close this out :-) .
Have a great day!
Best regards,
SophieOctober 12, 2017 at 10:21 pm #863643Hi,
If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Remove "Tag archive for: TAG" in title bar’ is closed to new replies.